@@ -36,7 +36,7 @@ public async Task TestReserveBasicAsync(string endpointId)
36
36
var db = GetCleanDatabase ( endpointId ) ;
37
37
var cf = db . CF ( ) ;
38
38
Assert . True ( await cf . ReserveAsync ( key , 100L , maxIterations : 20 , expansion : 1 ) ) ;
39
- _ = Assert . ThrowsAsync < RedisServerException > ( async ( ) => await cf . ReserveAsync ( key , 100L ) ) ;
39
+ await Assert . ThrowsAsync < RedisServerException > ( async ( ) => await cf . ReserveAsync ( key , 100L ) ) ;
40
40
41
41
Assert . True ( await ( cf . AddAsync ( key , "item1" ) ) ) ;
42
42
Assert . True ( await cf . ExistsAsync ( key , "item1" ) ) ;
@@ -298,7 +298,7 @@ public async Task TestInsertNXAsync(string endpointId)
298
298
299
299
RedisValue [ ] items = new RedisValue [ ] { "item1" , "item2" , "item3" } ;
300
300
301
- _ = Assert . ThrowsAsync < RedisServerException > ( async ( ) => await cf . InsertNXAsync ( key , items , 1024 , true ) ) ;
301
+ await Assert . ThrowsAsync < RedisServerException > ( async ( ) => await cf . InsertNXAsync ( key , items , 1024 , true ) ) ;
302
302
var result = await cf . InsertNXAsync ( key , items , 1024 ) ;
303
303
await cf . InsertNXAsync ( key , items , 10245 , true ) ;
304
304
var trues = new bool [ ] { true , true , true } ;
@@ -314,7 +314,7 @@ public async Task TestInsertNXAsync(string endpointId)
314
314
Assert . Equal ( result , new bool [ ] { false , false , false } ) ;
315
315
316
316
// test empty items:
317
- _ = Assert . ThrowsAsync < ArgumentOutOfRangeException > ( async ( ) => await cf . InsertNXAsync ( key , new RedisValue [ ] { } ) ) ;
317
+ await Assert . ThrowsAsync < ArgumentOutOfRangeException > ( async ( ) => await cf . InsertNXAsync ( key , new RedisValue [ ] { } ) ) ;
318
318
}
319
319
320
320
[ SkippableTheory ]
0 commit comments