Skip to content

Commit 5bb9340

Browse files
committed
Fix a couple of warnings in DBCursor test
1 parent 595b11f commit 5bb9340

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class DBCursorFunctionalSpecification extends FunctionalSpecification {
151151
collection.createIndex(new BasicDBObject('x', 1), new BasicDBObject('sparse', true));
152152

153153
then:
154-
collection.find(new BasicDBObject('a', 1)).hint('x_1').count() == serverVersionAtLeast(asList(2, 6, 0)) ? 0 : 1
154+
collection.find(new BasicDBObject('a', 1)).hint('x_1').count() == (serverVersionAtLeast(asList(2, 6, 0)) ? 0 : 1)
155155
collection.find().hint('a_1').count() == 2
156156
}
157157

@@ -189,7 +189,7 @@ class DBCursorFunctionalSpecification extends FunctionalSpecification {
189189
def countWithHint = collection.find(new BasicDBObject('a', 1)).addSpecial('$hint', 'x_1').count()
190190

191191
then:
192-
countWithHint == serverVersionAtLeast(asList(2, 6, 0)) ? 0 : 1
192+
countWithHint == (serverVersionAtLeast(asList(2, 6, 0)) ? 0 : 1)
193193
}
194194

195195
@IgnoreIf({ serverVersionAtLeast(asList(3, 0, 0)) })

0 commit comments

Comments
 (0)