Skip to content

Commit

Permalink
In hint test, first create index before hinting it, as a hint of a no…
Browse files Browse the repository at this point in the history
…n-existing index will fail for MongoDB 3.2.
  • Loading branch information
jyemin committed May 11, 2015
1 parent e044e7f commit 366a88d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class DBCursorFunctionalSpecification extends FunctionalSpecification {

def 'should use provided hint for count'() {
expect:
collection.createIndex(new BasicDBObject('a', 1));
collection.find().hint('a_1').count() == 1
collection.find().hint(new BasicDBObject('a', 1)).count() == 1
}
Expand Down

0 comments on commit 366a88d

Please sign in to comment.