|
1 |
| -// Licensed to the .NET Foundation under one or more agreements. |
| 1 | +// Licensed to the .NET Foundation under one or more agreements. |
2 | 2 | // The .NET Foundation licenses this file to you under the MIT license.
|
3 | 3 | // See the LICENSE file in the project root for more information.
|
4 | 4 |
|
|
12 | 12 |
|
13 | 13 | namespace Microsoft.Extensions.Caching.Memory
|
14 | 14 | {
|
15 |
| - public class CapacityTests : LoggedTestBase |
| 15 | + public class CapacityTests |
16 | 16 | {
|
17 | 17 | [Fact]
|
18 | 18 | public void MemoryDistributedCacheOptionsDefaultsTo200MBSizeLimit()
|
@@ -112,13 +112,9 @@ public void DoNotAddEntryIfItExceedsCapacity()
|
112 | 112 | }
|
113 | 113 |
|
114 | 114 | [Fact]
|
115 |
| - [CollectDump] |
116 | 115 | public async Task DoNotAddIfSizeOverflows()
|
117 | 116 | {
|
118 |
| - var cache = new MemoryCache(new MemoryCacheOptions |
119 |
| - { |
120 |
| - SizeLimit = long.MaxValue |
121 |
| - }, LoggerFactory); |
| 117 | + var cache = new MemoryCache(new MemoryCacheOptions { SizeLimit = long.MaxValue }); |
122 | 118 |
|
123 | 119 | var entryOptions = new MemoryCacheEntryOptions { Size = long.MaxValue };
|
124 | 120 | var sem = new SemaphoreSlim(0, 1);
|
@@ -148,7 +144,6 @@ public async Task DoNotAddIfSizeOverflows()
|
148 | 144 | }
|
149 | 145 |
|
150 | 146 | [Fact]
|
151 |
| - [CollectDump] |
152 | 147 | public async Task ExceedsCapacityCompacts()
|
153 | 148 | {
|
154 | 149 | var cache = new MemoryCache(new MemoryCacheOptions
|
@@ -242,7 +237,6 @@ public void AddingReplacementWhenTotalSizeExceedsCapacityDoesNotUpdateAndRemoves
|
242 | 237 | }
|
243 | 238 |
|
244 | 239 | [Fact]
|
245 |
| - [CollectDump] |
246 | 240 | public async Task AddingReplacementWhenTotalSizeExceedsCapacityDoesNotUpdateRemovesOldEntryAndTriggersCompaction()
|
247 | 241 | {
|
248 | 242 | var cache = new MemoryCache(new MemoryCacheOptions
|
@@ -312,7 +306,6 @@ public void RemovingEntryDecreasesCacheSize()
|
312 | 306 | }
|
313 | 307 |
|
314 | 308 | [Fact]
|
315 |
| - [CollectDump] |
316 | 309 | public async Task ExpiringEntryDecreasesCacheSize()
|
317 | 310 | {
|
318 | 311 | var cache = new MemoryCache(new MemoryCacheOptions
|
@@ -348,7 +341,6 @@ public async Task ExpiringEntryDecreasesCacheSize()
|
348 | 341 | }
|
349 | 342 |
|
350 | 343 | [Fact]
|
351 |
| - [CollectDump] |
352 | 344 | public async Task CompactsToLessThanLowWatermarkUsingLRUWhenHighWatermarkExceeded()
|
353 | 345 | {
|
354 | 346 | var testClock = new TestClock();
|
|
0 commit comments