Skip to content

Commit a40a0be

Browse files
committed
JAVA-1887: Replaced use in a test of a deprecated method in the Connection interface.
1 parent 8364efb commit a40a0be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,14 @@ class QueryBatchCursorSpecification extends OperationFunctionalSpecification {
411411
executeQuery(0)
412412
}
413413

414-
private QueryResult<Document> executeQuery(int numToReturn) {
415-
executeQueryProtocol(new BsonDocument(), numToReturn, false, false)
414+
private QueryResult<Document> executeQuery(int batchSize) {
415+
executeQueryProtocol(new BsonDocument(), batchSize, false, false)
416416
}
417417

418-
private QueryResult<Document> executeQueryProtocol(BsonDocument query, int numberToReturn, boolean tailable, boolean awaitData) {
418+
private QueryResult<Document> executeQueryProtocol(BsonDocument query, int batchSize, boolean tailable, boolean awaitData) {
419419
def connection = connectionSource.getConnection()
420420
try {
421-
connection.query(getNamespace(), query, null, numberToReturn, 0,
421+
connection.query(getNamespace(), query, null, 0, 0, batchSize,
422422
false, tailable, awaitData, false, false, false,
423423
new DocumentCodec());
424424
} finally {

0 commit comments

Comments
 (0)