diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/FocasFixedTreeAddressingTests.cs b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/FocasFixedTreeAddressingTests.cs index f8f4a99a..53ea51da 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/FocasFixedTreeAddressingTests.cs +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Tests/FocasFixedTreeAddressingTests.cs @@ -40,7 +40,7 @@ public sealed class FocasFixedTreeAddressingTests while (DateTime.UtcNow < deadline) { if (predicate()) return true; - await Task.Delay(25); + await Task.Delay(25, TestContext.Current.CancellationToken); } return predicate(); } @@ -150,7 +150,7 @@ public sealed class FocasFixedTreeAddressingTests new FocasTagDefinition("raw/Run", Host, "R100", FocasDataType.Byte)); await drv.InitializeAsync("{}", CancellationToken.None); - await Task.Delay(300); + await Task.Delay(300, TestContext.Current.CancellationToken); drv.GetDeviceState(Host)!.FixedTreeCache.ShouldBeNull(); await drv.ShutdownAsync(CancellationToken.None);