diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.SqlServer.IntegrationTests/AlarmWriterTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.SqlServer.IntegrationTests/AlarmWriterTests.cs index f631be60..36f20352 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.SqlServer.IntegrationTests/AlarmWriterTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.Historian.SqlServer.IntegrationTests/AlarmWriterTests.cs @@ -101,10 +101,10 @@ public sealed class AlarmWriterTests(SqlHistorianFixture fx) r.Count.ShouldBe(401); r.ShouldAllBe(o => o == HistorianWriteOutcome.Ack); await using var c = new SqlConnection(fx.ConnectionString); - await c.OpenAsync(); + await c.OpenAsync(TestContext.Current.CancellationToken); await using var cmd = c.CreateCommand(); cmd.CommandText = $"SELECT COUNT(*) FROM [{s}].Event"; - Convert.ToInt32(await cmd.ExecuteScalarAsync()).ShouldBe(400); + Convert.ToInt32(await cmd.ExecuteScalarAsync(TestContext.Current.CancellationToken)).ShouldBe(400); } [Fact]