Skip to content

Commit db1fdbc

Browse files
committed
Fix Groovy test
1 parent 647e3b2 commit db1fdbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/test/unit/com/mongodb/internal/connection/BaseClusterSpecification.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class BaseClusterSpecification extends Specification {
255255
def latch = new CountDownLatch(1)
256256
def thread = new Thread({
257257
try {
258-
cluster.selectServer(new ReadPreferenceServerSelector(ReadPreference.primary()))
258+
cluster.selectServer(new ReadPreferenceServerSelector(ReadPreference.primary()), new OperationContext())
259259
} catch (MongoInterruptedException e) {
260260
latch.countDown()
261261
}

0 commit comments

Comments
 (0)