Skip to content

Commit 7ad2b99

Browse files
committed
More relaxed pauses for cleanup unittests on Windows (Linux and Mac worked fine)
1 parent 9c4ddca commit 7ad2b99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnitTests/EvictionCallbackTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public async Task WhenItemExpires_EvictionCallbackFires()
2626
_cache.AddOrUpdate(key, "value", TimeSpan.FromMilliseconds(1));
2727

2828
// Act
29-
await Task.Delay(110); // Wait for expiration
29+
await Task.Delay(120); // Wait for expiration background job
3030

3131
// Assert
3232
Assert.AreEqual(1, _evictedKeys.Count);
@@ -72,7 +72,7 @@ public async Task AutomaticCleanup_FiresCallback()
7272
_cache.AddOrUpdate("key", "value", TimeSpan.FromMilliseconds(1));
7373

7474
// Act
75-
await Task.Delay(110); // Wait for cleanup job
75+
await Task.Delay(120); // Wait for cleanup job
7676

7777
// Assert
7878
Assert.AreEqual(1, _evictedKeys.Count);

0 commit comments

Comments
 (0)