Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Increase timeout - there's a better way to do this
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Jul 5, 2017
1 parent 37038f9 commit a6b33f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void ExpiringEntryDecreasesCacheSize()
cache.Get("key");

// Wait for compaction to complete
Thread.Sleep(TimeSpan.FromMilliseconds(100));
Thread.Sleep(TimeSpan.FromSeconds(1));

Assert.Equal(0, cache.CacheSize);
}
Expand Down Expand Up @@ -111,7 +111,7 @@ public void CompactsToLessThanLowWatermarkUsingLRUWhenHighWatermarkExceeded()
cache.Set("key5", "value5", new MemoryCacheEntryOptions { Size = 1 });

// Wait for compaction to complete
Thread.Sleep(TimeSpan.FromMilliseconds(100));
Thread.Sleep(TimeSpan.FromSeconds(1));

// There should be 2 items in the cache
Assert.Equal(2, cache.Count);
Expand Down

0 comments on commit a6b33f7

Please sign in to comment.