From 2c88fb9b43b1d2227903c52775fd247b4b0f8cad Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Wed, 27 Jul 2022 11:50:57 -0600 Subject: [PATCH] Disable tests that wait for compaction --- .../tests/CapacityTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs b/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs index 8a0ba15ac8fcf..2be2a66bd60e6 100644 --- a/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs +++ b/src/libraries/Microsoft.Extensions.Caching.Memory/tests/CapacityTests.cs @@ -110,6 +110,7 @@ public void DoNotAddEntryIfItExceedsCapacity() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/72912")] public async Task DoNotAddIfSizeOverflows() { var cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = long.MaxValue }); @@ -142,6 +143,7 @@ public async Task DoNotAddIfSizeOverflows() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/72912")] public async Task ExceedsCapacityCompacts() { var cache = new MemoryCache(new MemoryCacheOptions @@ -235,6 +237,7 @@ public void AddingReplacementWhenTotalSizeExceedsCapacityDoesNotUpdateAndRemoves } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/72912")] public async Task AddingReplacementWhenTotalSizeExceedsCapacityDoesNotUpdateRemovesOldEntryAndTriggersCompaction() { var cache = new MemoryCache(new MemoryCacheOptions @@ -305,6 +308,7 @@ public void RemovingEntryDecreasesCacheSize() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/72912")] public async Task ExpiringEntryDecreasesCacheSize() { var cache = new MemoryCache(new MemoryCacheOptions @@ -375,6 +379,7 @@ public void TryingToAddEntryWithExpiredTokenDoesNotIncreaseCacheSize() } [Fact] + [ActiveIssue("https://github.com/dotnet/runtime/issues/72912")] public async Task CompactsToLessThanLowWatermarkUsingLRUWhenHighWatermarkExceeded() { var testClock = new TestClock();