File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
StackExchange.Redis.Tests Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public async Task DeslaveGoesToPrimary()
48
48
primary . MakeMaster ( ReplicationChangeOptions . SetTiebreaker ) ;
49
49
secondary . MakeMaster ( ReplicationChangeOptions . None ) ;
50
50
51
- await Task . Delay ( 2000 ) . ConfigureAwait ( false ) ;
51
+ await Task . Delay ( 100 ) . ConfigureAwait ( false ) ;
52
52
53
53
primary . Ping ( ) ;
54
54
secondary . Ping ( ) ;
@@ -75,7 +75,7 @@ public async Task DeslaveGoesToPrimary()
75
75
primary . MakeMaster ( ReplicationChangeOptions . Broadcast | ReplicationChangeOptions . EnslaveSubordinates | ReplicationChangeOptions . SetTiebreaker , Writer ) ;
76
76
Writer . WriteLine ( "Finished MakeMaster() call." ) ;
77
77
78
- await Task . Delay ( 2000 ) . ConfigureAwait ( false ) ;
78
+ await Task . Delay ( 100 ) . ConfigureAwait ( false ) ;
79
79
80
80
Writer . WriteLine ( "Invoking Ping() (post-master)" ) ;
81
81
primary . Ping ( ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public async Task SubscriptionsSurviveMasterSwitchAsync(bool useSharedSocketMana
75
75
subA . Ping ( ) ;
76
76
subB . Ping ( ) ;
77
77
Output . WriteLine ( "Pausing..." ) ;
78
- await Task . Delay ( 4000 ) . ForAwait ( ) ;
78
+ await Task . Delay ( 6000 ) . ForAwait ( ) ;
79
79
80
80
Assert . True ( a . GetServer ( TestConfig . Current . MasterServerAndPort ) . IsSlave , $ "{ TestConfig . Current . MasterServerAndPort } should be a slave via a") ;
81
81
Assert . False ( a . GetServer ( TestConfig . Current . SlaveServerAndPort ) . IsSlave , $ "{ TestConfig . Current . SlaveServerAndPort } should be a master via a") ;
You can’t perform that action at this time.
0 commit comments