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 0869020 commit 77584c2Copy full SHA for 77584c2
src/DotNext.Tests/Threading/Leases/LeaseTests.cs
@@ -96,6 +96,8 @@ public static async Task ConsumerTokenState()
96
False(consumer.Expiration.IsExpired);
97
98
await consumer.Token.WaitAsync();
99
+ await Task.Delay(provider.TimeToLive);
100
+
101
False(await consumer.ReleaseAsync());
102
}
103
@@ -178,7 +180,7 @@ private sealed class TestLeaseProvider(TimeSpan ttl) : LeaseProvider<int>(ttl)
178
180
private readonly AsyncReaderWriterLock syncRoot = new();
179
181
private State currentState;
182
- internal CancellationToken Token => base.LifetimeToken;
183
+ internal CancellationToken Token => LifetimeToken;
184
185
protected override async ValueTask<State> GetStateAsync(CancellationToken token)
186
{
0 commit comments