This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
tests/ServiceStack.Redis.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ public class RetryCommandTests
1414 [ Test ]
1515 public void Does_retry_failed_commands ( )
1616 {
17- //LogManager.LogFactory = new ConsoleLogFactory(debugEnabled: true);
17+ // LogManager.LogFactory = new ConsoleLogFactory(debugEnabled: true);
18+ // RedisConfig.EnableVerboseLogging = true;
1819
1920 RedisStats . Reset ( ) ;
2021
@@ -37,7 +38,7 @@ public void Does_retry_failed_commands()
3738 } ;
3839
3940 Assert . That ( redis . IncrementValue ( "retryCounter" ) , Is . EqualTo ( 2 ) ) ;
40- Assert . That ( redis . Get < int > ( "retryCounter" ) , Is . EqualTo ( 2 ) ) ;
41+ Assert . That ( redis . Get < int > ( "retryCounter" ) , Is . EqualTo ( 3 ) ) ;
4142
4243 Assert . That ( RedisStats . TotalRetryCount , Is . EqualTo ( 1 ) ) ;
4344 Assert . That ( RedisStats . TotalRetrySuccess , Is . EqualTo ( 1 ) ) ;
@@ -61,7 +62,7 @@ public void Does_retry_failed_commands_with_SocketException()
6162 } ;
6263
6364 Assert . That ( redis . IncrementValue ( "retryCounter" ) , Is . EqualTo ( 2 ) ) ;
64- Assert . That ( redis . Get < int > ( "retryCounter" ) , Is . EqualTo ( 2 ) ) ;
65+ Assert . That ( redis . Get < int > ( "retryCounter" ) , Is . EqualTo ( 3 ) ) ;
6566
6667 Assert . That ( RedisStats . TotalRetryCount , Is . EqualTo ( 1 ) ) ;
6768 Assert . That ( RedisStats . TotalRetrySuccess , Is . EqualTo ( 1 ) ) ;
You can’t perform that action at this time.
0 commit comments