File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
driver-core/src/test/unit/com/mongodb/connection Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -257,18 +257,16 @@ class BaseClusterSpecification extends Specification {
257
257
def thirdServerLatch = selectServerAsync(cluster, thirdServer)
258
258
factory. sendNotification(secondServer, REPLICA_SET_SECONDARY , allServers)
259
259
factory. sendNotification(thirdServer, REPLICA_SET_SECONDARY , allServers)
260
- secondServerLatch. latch. await()
261
- thirdServerLatch. latch. await()
262
260
263
261
then :
264
- secondServerLatch. server . description. address == secondServer
265
- thirdServerLatch. server . description. address == thirdServer
262
+ secondServerLatch. get() . description. address == secondServer
263
+ thirdServerLatch. get() . description. address == thirdServer
266
264
267
265
cleanup :
268
266
cluster?. close()
269
267
270
268
where :
271
- serverSelectionTimeoutMS << [30 , -1 ]
269
+ serverSelectionTimeoutMS << [500 , -1 ]
272
270
}
273
271
274
272
def ' when selecting server asynchronously should send MongoClientException to callback if cluster is closed before success' () {
You can’t perform that action at this time.
0 commit comments