Skip to content

Commit 11428b7

Browse files
committed
Remove recently-added assertion that fails on MongoDB 2.4
1 parent bbcb83a commit 11428b7

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
@@ -668,8 +668,8 @@ public void testWriteConcernExceptionOnUpdate() throws UnknownHostException {
668668
new WriteConcern(5, 1));
669669
fail("Expected update to error. Instead, succeeded with: " + writeResult);
670670
} catch (WriteConcernException e) {
671+
assertNotNull(e.getServerAddress());
671672
assertNotNull(e.getErrorMessage());
672-
assertTrue(e.getCode() > 0);
673673
assertEquals(1, e.getCommandResult().get("n"));
674674
assertEquals(id, e.getCommandResult().get("upserted"));
675675
}

0 commit comments

Comments
 (0)