Skip to content

Commit b939250

Browse files
committed
fix(ci): stabilize desktop packaging and tests
1 parent fd9622c commit b939250

4 files changed

Lines changed: 7 additions & 1 deletion

File tree

desktop/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

desktop/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"ignore-walk": "^8.0.0",
5454
"lucide-react": "^1.8.0",
5555
"mermaid": "^11.15.0",
56+
"micromark-core-commonmark": "2.0.3",
5657
"playwright-core": "^1.59.1",
5758
"react-markdown": "^10.1.0",
5859
"remark-gfm": "^4.0.1",

tests/DotCraft.App.Tests/Hub/ManagedLocalServiceRegistryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public async Task EnsureAsync_CoalescesConcurrentStartsAndReusesCredentials()
2222

2323
var responses = await Task.WhenAll(requests);
2424

25-
Assert.Equal(1, starts.Count);
25+
Assert.Single(starts);
2626
Assert.All(responses, item => Assert.Equal(HubManagedServiceStates.Running, item.State));
2727
Assert.Single(responses.Select(item => item.AccessToken).Distinct());
2828
Assert.Single(responses.Select(item => item.Pid).Distinct());

tests/DotCraft.Oratorio.Tests/GitLabReadSyncTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Microsoft.EntityFrameworkCore;
88
using Microsoft.Extensions.DependencyInjection;
99
using Microsoft.Extensions.DependencyInjection.Extensions;
10+
using Microsoft.Extensions.Hosting;
1011
using Microsoft.Extensions.Options;
1112
using DotCraft.Oratorio.Api;
1213
using DotCraft.Oratorio.Data;
@@ -263,6 +264,9 @@ public async Task AutoReview_CanonicalGitHubAndGitLabAllowlistQueuesBothProvider
263264
GitLabSettings(),
264265
services =>
265266
{
267+
services.Remove(services.Single(descriptor =>
268+
descriptor.ServiceType == typeof(IHostedService) &&
269+
descriptor.ImplementationType == typeof(AutoReviewDispatchWorker)));
266270
services.RemoveAll<IGitHubApiClient>();
267271
services.AddSingleton<IGitHubApiClient>(fakeGitHub);
268272
services.RemoveAll<IDotCraftAppServerProcessManager>();

0 commit comments

Comments
 (0)