Skip to content

Commit

Permalink
Migrate xunit 2.9.3 (#385)
Browse files Browse the repository at this point in the history
migrate xunit 2.9.3
  • Loading branch information
atakavci authored Jan 25, 2025
1 parent 137623f commit 54d894a
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 54d894a

Please sign in to comment.