Skip to content

Commit 149a04c

Browse files
committed
Disable test that no longer passes on 5.1 server
This is a test artifact, that comes from using OP_GET_MORE directly in a test.
1 parent 2a32ac3 commit 149a04c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import static com.mongodb.ClusterFixture.getReadConnectionSource
5656
import static com.mongodb.ClusterFixture.getReferenceCountAfterTimeout
5757
import static com.mongodb.ClusterFixture.isDiscoverableReplicaSet
5858
import static com.mongodb.ClusterFixture.isSharded
59+
import static com.mongodb.ClusterFixture.serverVersionAtLeast
5960
import static com.mongodb.ClusterFixture.serverVersionLessThan
6061
import static com.mongodb.internal.connection.ServerHelper.waitForLastRelease
6162
import static com.mongodb.internal.connection.ServerHelper.waitForRelease
@@ -320,7 +321,7 @@ class AsyncQueryBatchCursorFunctionalSpecification extends OperationFunctionalSp
320321
!nextBatch()
321322
}
322323

323-
@IgnoreIf({ isSharded() })
324+
@IgnoreIf({ isSharded() || serverVersionAtLeast(5, 1) })
324325
def 'should kill cursor if limit is reached on initial query'() throws InterruptedException {
325326
given:
326327
def firstBatch = executeQuery(5)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class QueryBatchCursorFunctionalSpecification extends OperationFunctionalSpecifi
351351
seen == 1
352352
}
353353

354-
@IgnoreIf({ isSharded() })
354+
@IgnoreIf({ isSharded() || serverVersionAtLeast(5, 1) })
355355
def 'should kill cursor if limit is reached on initial query'() throws InterruptedException {
356356
given:
357357
def firstBatch = executeQuery(5)

0 commit comments

Comments
 (0)