test: migrate AdminUI/ControlPlane/Runtime/Host tests to xunit.v3 (#756)
v2-ci / unit-tests (push) Failing after 13m22s
v2-ci / unit-tests (push) Failing after 13m22s
Akka.TestKit.Xunit2 -> Akka.TestKit.Xunit 1.5.62 (xunit.v3 TestKit; needs xunit.v3 3.2.2, set via VersionOverride on the four projects). Removes the xunit 2.9.3 pin. IAsyncLifetime returns ValueTask, SqlServerFactAttribute gains the source-info ctor, and xUnit1051 call sites pass TestContext.Current.CancellationToken. Test counts unchanged. Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
This commit is contained in:
@@ -36,7 +36,7 @@ public sealed class UnsTreeServiceCreateScriptTests
|
||||
{
|
||||
var (service, dbName) = Fresh();
|
||||
|
||||
var result = await service.CreateScriptAsync("my new script");
|
||||
var result = await service.CreateScriptAsync("my new script", TestContext.Current.CancellationToken);
|
||||
|
||||
result.Ok.ShouldBeTrue();
|
||||
result.Error.ShouldBeNull();
|
||||
@@ -59,7 +59,7 @@ public sealed class UnsTreeServiceCreateScriptTests
|
||||
{
|
||||
var (service, dbName) = Fresh();
|
||||
|
||||
var result = await service.CreateScriptAsync(" ");
|
||||
var result = await service.CreateScriptAsync(" ", TestContext.Current.CancellationToken);
|
||||
|
||||
result.Ok.ShouldBeTrue();
|
||||
using var db = UnsTreeTestDb.CreateNamed(dbName);
|
||||
@@ -72,8 +72,8 @@ public sealed class UnsTreeServiceCreateScriptTests
|
||||
{
|
||||
var (service, dbName) = Fresh();
|
||||
|
||||
var first = await service.CreateScriptAsync("first");
|
||||
var second = await service.CreateScriptAsync("second");
|
||||
var first = await service.CreateScriptAsync("first", TestContext.Current.CancellationToken);
|
||||
var second = await service.CreateScriptAsync("second", TestContext.Current.CancellationToken);
|
||||
|
||||
first.Ok.ShouldBeTrue();
|
||||
second.Ok.ShouldBeTrue();
|
||||
|
||||
Reference in New Issue
Block a user