File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
driver-core/src/test/unit/com/mongodb/internal/connection Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -213,18 +213,18 @@ class BaseClusterSpecification extends Specification {
213
213
def latch = new CountDownLatch (1 )
214
214
def thread = new Thread ({
215
215
try {
216
- cluster. selectServer()( new ReadPreferenceServerSelector (ReadPreference . primary()))
216
+ cluster. selectServer(new ReadPreferenceServerSelector (ReadPreference . primary()))
217
217
} catch (MongoInterruptedException e) {
218
218
latch. countDown()
219
219
}
220
220
})
221
221
thread. start()
222
222
sleep(1000 )
223
223
thread. interrupt()
224
- latch. await(ClusterFixture . TIMEOUT , SECONDS )
224
+ def interrupted = latch. await(ClusterFixture . TIMEOUT , SECONDS )
225
225
226
226
then :
227
- true
227
+ interrupted
228
228
229
229
cleanup :
230
230
cluster?. close()
@@ -252,10 +252,10 @@ class BaseClusterSpecification extends Specification {
252
252
thread. start()
253
253
sleep(1000 )
254
254
thread. interrupt()
255
- latch. await(ClusterFixture . TIMEOUT , SECONDS )
255
+ def interrupted = latch. await(ClusterFixture . TIMEOUT , SECONDS )
256
256
257
257
then :
258
- true
258
+ interrupted
259
259
260
260
cleanup :
261
261
cluster?. close()
You can’t perform that action at this time.
0 commit comments