We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7e3eb commit 9bbe96cCopy full SHA for 9bbe96c
x/mongo/driver/topology/rtt_monitor_test.go
@@ -275,6 +275,10 @@ func TestRTTMonitor(t *testing.T) {
275
return
276
}
277
278
+ // Delay for 10ms so that systems with limited timing granularity (e.g. some
279
+ // older versions of Windows) can measure a non-zero latency.
280
+ time.Sleep(10 * time.Millisecond)
281
+
282
if _, err := conn.Write(makeHelloReply()); err != nil {
283
// The connection read/write loop is cancelled by closing the connection,
284
// so may be an expected error here. Log the error to make debugging
0 commit comments