You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: driver-reactive-streams/src/test/functional/com/mongodb/reactivestreams/client/syncadapter/SyncMongoClient.java
+49Lines changed: 49 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,55 @@
34
34
importstaticjava.util.Objects.requireNonNull;
35
35
36
36
publicclassSyncMongoClientimplementsMongoClient {
37
+
38
+
privatestaticlongsleepAfterCursorOpenMS;
39
+
40
+
privatestaticlongsleepAfterCursorCloseMS;
41
+
42
+
/**
43
+
* Unfortunately this is the only way to wait for a query to be initiated, since Reactive Streams is asynchronous
44
+
* and we have no way of knowing. Tests which require cursor initiation to complete before execution of the next operation
45
+
* can set this to a positive value. A value of 256 ms has been shown to work well. The default value is 0.
Copy file name to clipboardExpand all lines: driver-reactive-streams/src/test/functional/com/mongodb/reactivestreams/client/syncadapter/SyncMongoCursor.java
Copy file name to clipboardExpand all lines: driver-reactive-streams/src/test/functional/com/mongodb/reactivestreams/client/unified/LoadBalancerTest.java
0 commit comments