Skip to content

Commit d99cd45

Browse files
author
Brendan W. McAdams
committed
Attempt comparing as a double, as asserts on Bamboo are acting wonky
1 parent d7bb040 commit d99cd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/com/mongodb/DBCollectionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public void testMultiInsertNoContinue() {
229229
public void mongodIsVersion20Plus() {
230230
String version = (String) _db.command("serverStatus").get("version");
231231
System.err.println("Connected to MongoDB Version '" + version + "'");
232-
assertEquals(version.charAt(0), "2");
232+
assert(Double.parseDouble(version.substring(0, 3)) >= 2.0);
233233
}
234234

235235
@Test(dependsOnMethods = { "mongodIsVersion20Plus" })

0 commit comments

Comments
 (0)