Skip to content

Commit 8daef11

Browse files
authored
bounds (#413)
1 parent 4847704 commit 8daef11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

BitFaster.Caching.UnitTests/Lru/ConcurrentLruSoakTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ await Threaded.Run(4, () => {
3939
this.testOutputHelper.WriteLine(string.Join(" ", lru.Keys));
4040

4141
// allow +/- 1 variance for capacity
42-
lru.Count.Should().BeCloseTo(9, 1);
42+
lru.Count.Should().BeInRange(7, 10);
4343
RunIntegrityCheck();
4444
}
4545
}
@@ -60,7 +60,7 @@ await Threaded.RunAsync(4, async () => {
6060
this.testOutputHelper.WriteLine(string.Join(" ", lru.Keys));
6161

6262
// allow +/- 1 variance for capacity
63-
lru.Count.Should().BeCloseTo(9, 1);
63+
lru.Count.Should().BeInRange(7, 10);
6464
RunIntegrityCheck();
6565
}
6666
}
@@ -82,7 +82,7 @@ await Threaded.Run(4, () => {
8282
this.testOutputHelper.WriteLine(string.Join(" ", lru.Keys));
8383

8484
// allow +/- 1 variance for capacity
85-
lru.Count.Should().BeCloseTo(9, 1);
85+
lru.Count.Should().BeInRange(7, 10);
8686
RunIntegrityCheck();
8787
}
8888
}
@@ -104,7 +104,7 @@ await Threaded.RunAsync(4, async () => {
104104
this.testOutputHelper.WriteLine(string.Join(" ", lru.Keys));
105105

106106
// allow +/- 1 variance for capacity
107-
lru.Count.Should().BeCloseTo(9, 1);
107+
lru.Count.Should().BeInRange(7, 10);
108108
RunIntegrityCheck();
109109
}
110110
}

0 commit comments

Comments
 (0)