Skip to content

Commit c4002a5

Browse files
committed
Fix incorrect mock implementation in tests that caused MissingMethodException to be thrown
1 parent 562a324 commit c4002a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ class ListCollectionsOperationSpecification extends OperationFunctionalSpecifica
437437

438438
then:
439439
_ * connection.getDescription() >> helper.threeZeroConnectionDescription
440-
1 * connection.commandAsync(helper.dbName, _, readPreference, _, _, _, _) >> { it[6].onResult(helper.commandResult, _) }
440+
1 * connection.commandAsync(helper.dbName, _, readPreference, _, _, _, _) >> { it[6].onResult(helper.commandResult, null) }
441441

442442
where:
443443
readPreference << [ReadPreference.primary(), ReadPreference.secondary()]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ class ListIndexesOperationSpecification extends OperationFunctionalSpecification
304304

305305
then:
306306
_ * connection.getDescription() >> helper.threeZeroConnectionDescription
307-
1 * connection.commandAsync(helper.dbName, _, readPreference, _, _, _, _) >> { it[6].onResult(helper.commandResult, _) }
307+
1 * connection.commandAsync(helper.dbName, _, readPreference, _, _, _, _) >> { it[6].onResult(helper.commandResult, null) }
308308

309309
where:
310310
readPreference << [ReadPreference.primary(), ReadPreference.secondary()]

0 commit comments

Comments
 (0)