File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
StackExchange.Redis.Tests Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,16 @@ public async Task DeslaveGoesToPrimary()
71
71
72
72
var ex = Assert . Throws < RedisConnectionException > ( ( ) => db . IdentifyEndpoint ( key , CommandFlags . DemandSlave ) ) ;
73
73
Assert . StartsWith ( "No connection is available to service this operation: EXISTS DeslaveGoesToPrimary" , ex . Message ) ;
74
-
74
+ Writer . WriteLine ( "Invoking MakeMaster()..." ) ;
75
75
primary . MakeMaster ( ReplicationChangeOptions . Broadcast | ReplicationChangeOptions . EnslaveSubordinates | ReplicationChangeOptions . SetTiebreaker , Writer ) ;
76
+ Writer . WriteLine ( "Finished MakeMaster() call." ) ;
76
77
77
78
await Task . Delay ( 2000 ) . ConfigureAwait ( false ) ;
78
79
80
+ Writer . WriteLine ( "Invoking Ping() (post-master)" ) ;
79
81
primary . Ping ( ) ;
80
82
secondary . Ping ( ) ;
83
+ Writer . WriteLine ( "Finished Ping() (post-master)" ) ;
81
84
82
85
Assert . True ( primary . IsConnected , $ "{ primary . EndPoint } is not connected.") ;
83
86
Assert . True ( secondary . IsConnected , $ "{ secondary . EndPoint } is not connected.") ;
@@ -87,6 +90,7 @@ public async Task DeslaveGoesToPrimary()
87
90
88
91
// Create a separate multiplexer with a valid view of the world to distinguish between failures of
89
92
// server topology changes from failures to recognize those changes
93
+ Writer . WriteLine ( "Connecting to secondary validation connection." ) ;
90
94
using ( var conn2 = ConnectionMultiplexer . Connect ( config ) )
91
95
{
92
96
var primary2 = conn . GetServer ( TestConfig . Current . MasterServerAndPort ) ;
You can’t perform that action at this time.
0 commit comments