Skip to content

Commit 4aa421f

Browse files
committed
In DBCursor test, don't combine use of $explain modifier and DBCursor.explain
1 parent 5bb9340 commit 4aa421f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/src/test/functional/com/mongodb/DBCursorFunctionalSpecification.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class DBCursorFunctionalSpecification extends FunctionalSpecification {
213213
when:
214214
dbCursor = collection.find().hint(new BasicDBObject('a', 1))
215215
dbCursor.addSpecial('$explain', 1)
216-
def explainPlan = dbCursor.explain()
216+
def explainPlan = dbCursor.next()
217217

218218
then:
219219
getKeyPattern(explainPlan) == cursorMap

0 commit comments

Comments
 (0)