We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b2b39b commit a9f5c1dCopy full SHA for a9f5c1d
src/Renci.SshNet.Tests/Classes/Common/CountdownEventTest.cs
@@ -334,7 +334,10 @@ public void WaitHandle_WaitOne_ShouldReturnFalseWhenTimeoutExpiresBeforeCountdow
334
Assert.IsFalse(actual);
335
Assert.IsFalse(countdownEvent.IsSet);
336
Assert.IsFalse(countdownEvent.WaitHandle.WaitOne(0));
337
- Assert.IsTrue(watch.Elapsed >= timeout);
+ // Use precision because it fail in CI/CD pipeline on .NET 7. Locally it worked without precision.
338
+ // But I think it is not supper important because this is internal .NET implementation.
339
+ var precision = TimeSpan.FromMilliseconds(6);
340
+ Assert.IsTrue(watch.Elapsed >= timeout.Subtract(precision));
341
342
countdownEvent.Wait(Session.InfiniteTimeSpan);
343
countdownEvent.Dispose();
0 commit comments