diff --git a/tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs b/tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs index 1a9b4a6e..545548d4 100644 --- a/tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs +++ b/tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs @@ -36,7 +36,7 @@ public async Task TestReserveBasicAsync(string endpointId) var db = GetCleanDatabase(endpointId); var cf = db.CF(); Assert.True(await cf.ReserveAsync(key, 100L, maxIterations: 20, expansion: 1)); - _ = Assert.ThrowsAsync(async () => await cf.ReserveAsync(key, 100L)); + await Assert.ThrowsAsync(async () => await cf.ReserveAsync(key, 100L)); Assert.True(await (cf.AddAsync(key, "item1"))); Assert.True(await cf.ExistsAsync(key, "item1")); @@ -298,7 +298,7 @@ public async Task TestInsertNXAsync(string endpointId) RedisValue[] items = new RedisValue[] { "item1", "item2", "item3" }; - _ = Assert.ThrowsAsync(async () => await cf.InsertNXAsync(key, items, 1024, true)); + await Assert.ThrowsAsync(async () => await cf.InsertNXAsync(key, items, 1024, true)); var result = await cf.InsertNXAsync(key, items, 1024); await cf.InsertNXAsync(key, items, 10245, true); var trues = new bool[] { true, true, true }; @@ -314,7 +314,7 @@ public async Task TestInsertNXAsync(string endpointId) Assert.Equal(result, new bool[] { false, false, false }); // test empty items: - _ = Assert.ThrowsAsync(async () => await cf.InsertNXAsync(key, new RedisValue[] { })); + await Assert.ThrowsAsync(async () => await cf.InsertNXAsync(key, new RedisValue[] { })); } [SkippableTheory]