Skip to content

Commit 7695991

Browse files
committed
More robust cache miss tests
1 parent 8960da1 commit 7695991

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Dache.PerformanceTests/CacheMiss/CacheMissTest.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,22 @@ public static void Run()
3838

3939
if (bulkResult == null)
4040
{
41-
Console.WriteLine("PASS: Did not receive values for bulks cache keys");
41+
Console.WriteLine("PASS: Did not receive values for bulk cache keys");
4242
}
4343
else
4444
{
45-
Console.WriteLine("FAIL: Received values for bulks cache keys");
45+
Console.WriteLine("FAIL: Received values for bulk cache keys");
46+
}
47+
48+
// Tag
49+
var tagResult = cacheClient.GetTagged<string>("tagDoesntExist");
50+
if (tagResult == null)
51+
{
52+
Console.WriteLine("PASS: Did not receive values for tag cache keys");
53+
}
54+
else
55+
{
56+
Console.WriteLine("FAIL: Received values for tag cache keys");
4657
}
4758

4859
Console.ReadKey();

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ VERSION INFORMATION
8282

8383
- Fixed breaking change in tag adds introduced in 1.4.0
8484

85+
- Fixed breaking change in cache key misses introduced in 1.4.0
86+
8587

8688
INSTALLATION INSTRUCTIONS
8789
============================================

0 commit comments

Comments
 (0)