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 9571a02 commit 9167e6cCopy full SHA for 9167e6c
src/DotNext.Tests/Threading/Leases/LeaseTests.cs
@@ -95,8 +95,7 @@ public static async Task ConsumerTokenState()
95
False(consumer.Token.IsCancellationRequested);
96
False(consumer.Expiration.IsExpired);
97
98
- await Task.Delay(400);
99
- True(consumer.Token.IsCancellationRequested);
+ await consumer.Token.WaitAsync();
100
False(await consumer.ReleaseAsync());
101
}
102
0 commit comments