File tree 1 file changed +0
-6
lines changed
tests/MongoDB.Driver.Core.Tests/Core/Servers
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -312,14 +312,8 @@ public void RoundTripTimeMonitor_should_be_started_only_once_if_using_streaming_
312
312
mockConnection . EnqueueCommandResponseMessage ( CreateHeartbeatCommandResponseMessage ( ) , null ) ;
313
313
314
314
subject . Initialize ( ) ;
315
- // spin until the initial handshake has happened in which case the server description state should be Connected
316
- SpinWait . SpinUntil ( ( ) => subject . Description . State == ServerState . Connected , TimeSpan . FromSeconds ( 5 ) ) . Should ( ) . BeTrue ( ) ;
317
-
318
- // RTT thread should be started after first heartbeat (initial handshake)
319
- mockRoundTripTimeMonitor . Verify ( m => m . Start ( ) , Times . Once ) ;
320
315
321
316
SpinWait . SpinUntil ( ( ) => capturedEvents . Count >= 4 , TimeSpan . FromSeconds ( 5 ) ) . Should ( ) . BeTrue ( ) ;
322
-
323
317
mockRoundTripTimeMonitor . Verify ( m => m . Start ( ) , Times . Once ) ;
324
318
mockRoundTripTimeMonitor . Verify ( m => m . IsStarted , Times . AtLeast ( 4 ) ) ;
325
319
subject . Dispose ( ) ;
You can’t perform that action at this time.
0 commit comments