Skip to content

Commit e565040

Browse files
committed
fix await error
1 parent cfeb817 commit e565040

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

tests/NRedisStack.Tests/TransactionsTests.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ public async Task TestModulsTransaction()
3636
db.Execute("FLUSHALL");
3737
var tran = new Transaction(db);
3838

39-
await tran.Bf.ReserveAsync("bf-key", 0.001, 100);
40-
await tran.Bf.AddAsync("bf-key", "1");
41-
await tran.Cms.InitByDimAsync("cms-key", 100, 5);
42-
await tran.Cf.ReserveAsync("cf-key", 100);
43-
await tran.Graph.QueryAsync("graph-key", "CREATE ({name:'shachar',age:23})");
44-
await tran.Json.SetAsync("json-key", "$", "{}");
45-
await tran.Ft.CreateAsync("ft-key", new FTCreateParams(), new Schema().AddTextField("txt"));
46-
await tran.Tdigest.CreateAsync("tdigest-key", 100);
47-
await tran.Ts.CreateAsync("ts-key", 100);
48-
await tran.TopK.ReserveAsync("topk-key", 100, 100, 100);
39+
_ = tran.Bf.ReserveAsync("bf-key", 0.001, 100);
40+
_ = tran.Bf.AddAsync("bf-key", "1");
41+
_ = tran.Cms.InitByDimAsync("cms-key", 100, 5);
42+
_ = tran.Cf.ReserveAsync("cf-key", 100);
43+
_ = tran.Graph.QueryAsync("graph-key", "CREATE ({name:'shachar',age:23})");
44+
_ = tran.Json.SetAsync("json-key", "$", "{}");
45+
_ = tran.Ft.CreateAsync("ft-key", new FTCreateParams(), new Schema().AddTextField("txt"));
46+
_ = tran.Tdigest.CreateAsync("tdigest-key", 100);
47+
_ = tran.Ts.CreateAsync("ts-key", 100);
48+
_ = tran.TopK.ReserveAsync("topk-key", 100, 100, 100);
4949

5050
Assert.False(db.KeyExists("bf-key"));
5151
Assert.False(db.KeyExists("cms-key"));
@@ -88,15 +88,15 @@ public async Task TestModulsTransactionWithoutGraph()
8888
db.Execute("FLUSHALL");
8989
var tran = new Transaction(db);
9090

91-
await tran.Bf.ReserveAsync("bf-key", 0.001, 100);
92-
await tran.Bf.AddAsync("bf-key", "1");
93-
await tran.Cms.InitByDimAsync("cms-key", 100, 5);
94-
await tran.Cf.ReserveAsync("cf-key", 100);
95-
await tran.Json.SetAsync("json-key", "$", "{}");
96-
await tran.Ft.CreateAsync("ft-key", new FTCreateParams(), new Schema().AddTextField("txt"));
97-
await tran.Tdigest.CreateAsync("tdigest-key", 100);
98-
await tran.Ts.CreateAsync("ts-key", 100);
99-
await tran.TopK.ReserveAsync("topk-key", 100, 100, 100);
91+
_ = tran.Bf.ReserveAsync("bf-key", 0.001, 100);
92+
_ = tran.Bf.AddAsync("bf-key", "1");
93+
_ = tran.Cms.InitByDimAsync("cms-key", 100, 5);
94+
_ = tran.Cf.ReserveAsync("cf-key", 100);
95+
_ = tran.Json.SetAsync("json-key", "$", "{}");
96+
_ = tran.Ft.CreateAsync("ft-key", new FTCreateParams(), new Schema().AddTextField("txt"));
97+
_ = tran.Tdigest.CreateAsync("tdigest-key", 100);
98+
_ = tran.Ts.CreateAsync("ts-key", 100);
99+
_ = tran.TopK.ReserveAsync("topk-key", 100, 100, 100);
100100

101101
Assert.False(db.KeyExists("bf-key"));
102102
Assert.False(db.KeyExists("cms-key"));

0 commit comments

Comments
 (0)