Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/NRedisStack.Tests/CuckooFilter/CuckooTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<RedisServerException>(async () => await cf.ReserveAsync(key, 100L));
await Assert.ThrowsAsync<RedisServerException>(async () => await cf.ReserveAsync(key, 100L));

Assert.True(await (cf.AddAsync(key, "item1")));
Assert.True(await cf.ExistsAsync(key, "item1"));
Expand Down Expand Up @@ -298,7 +298,7 @@ public async Task TestInsertNXAsync(string endpointId)

RedisValue[] items = new RedisValue[] { "item1", "item2", "item3" };

_ = Assert.ThrowsAsync<RedisServerException>(async () => await cf.InsertNXAsync(key, items, 1024, true));
await Assert.ThrowsAsync<RedisServerException>(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 };
Expand All @@ -314,7 +314,7 @@ public async Task TestInsertNXAsync(string endpointId)
Assert.Equal(result, new bool[] { false, false, false });

// test empty items:
_ = Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await cf.InsertNXAsync(key, new RedisValue[] { }));
await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await cf.InsertNXAsync(key, new RedisValue[] { }));
}

[SkippableTheory]
Expand Down
Loading