@@ -15,7 +15,7 @@ public async Task GcraRateLimit_DefaultCount_RoundTrip(
1515 string requestResp ,
1616 string responseResp )
1717 {
18- var msg = Message . Create ( 0 , CommandFlags . None , RedisCommand . GCRA , ( RedisKey ) key , maxBurst , requestsPerPeriod , periodSeconds ) ;
18+ var msg = new RedisDatabase . GcraMessage ( 0 , CommandFlags . None , key , maxBurst , requestsPerPeriod , periodSeconds , 1 ) ;
1919 var result = await TestConnection . ExecuteAsync ( msg , ResultProcessor . GcraRateLimit , requestResp , responseResp ) ;
2020
2121 Assert . False ( result . Limited ) ;
@@ -36,7 +36,7 @@ public async Task GcraRateLimit_WithCount_RoundTrip(
3636 string requestResp ,
3737 string responseResp )
3838 {
39- var msg = Message . Create ( 0 , CommandFlags . None , RedisCommand . GCRA , ( RedisKey ) key , maxBurst , requestsPerPeriod , periodSeconds , RedisLiterals . NUM_REQUESTS , count ) ;
39+ var msg = new RedisDatabase . GcraMessage ( 0 , CommandFlags . None , key , maxBurst , requestsPerPeriod , periodSeconds , count ) ;
4040 var result = await TestConnection . ExecuteAsync ( msg , ResultProcessor . GcraRateLimit , requestResp , responseResp ) ;
4141
4242 Assert . True ( result . Limited ) ;
@@ -56,7 +56,7 @@ public async Task GcraRateLimit_CustomPeriod_RoundTrip(
5656 string requestResp ,
5757 string responseResp )
5858 {
59- var msg = Message . Create ( 0 , CommandFlags . None , RedisCommand . GCRA , ( RedisKey ) key , maxBurst , requestsPerPeriod , periodSeconds ) ;
59+ var msg = new RedisDatabase . GcraMessage ( 0 , CommandFlags . None , key , maxBurst , requestsPerPeriod , periodSeconds , 1 ) ;
6060 var result = await TestConnection . ExecuteAsync ( msg , ResultProcessor . GcraRateLimit , requestResp , responseResp ) ;
6161
6262 Assert . False ( result . Limited ) ;
0 commit comments