Skip to content

Commit db69a2f

Browse files
committed
Ignore maxTimeMS integration test for getMore on sharded clusters, where it is currently unimplemented
1 parent 45630a4 commit db69a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/test/functional/com/mongodb/operation/QueryBatchCursorFunctionalSpecification.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class QueryBatchCursorFunctionalSpecification extends OperationFunctionalSpecifi
248248
nextBatch.iterator().next().get('_id') == 2
249249
}
250250

251-
@IgnoreIf({ !serverVersionAtLeast([3, 2, 0]) })
251+
@IgnoreIf({ !serverVersionAtLeast([3, 2, 0]) || isSharded() })
252252
@Category(Slow)
253253
def 'test maxTimeMS'() {
254254
collectionHelper.create(collectionName, new CreateCollectionOptions().capped(true).sizeInBytes(1000))
@@ -266,7 +266,7 @@ class QueryBatchCursorFunctionalSpecification extends OperationFunctionalSpecifi
266266

267267
then:
268268
result == null
269-
// RACY TEST: no guarante assertion will fire within the given timeframe
269+
// RACY TEST: no guarantee assertion will fire within the given timeframe
270270
System.currentTimeMillis() - startTime < (maxTimeMS + 200)
271271

272272
cleanup:

0 commit comments

Comments
 (0)