We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbcb83a commit 11428b7Copy full SHA for 11428b7
src/test/com/mongodb/DBCollectionTest.java
@@ -668,8 +668,8 @@ public void testWriteConcernExceptionOnUpdate() throws UnknownHostException {
668
new WriteConcern(5, 1));
669
fail("Expected update to error. Instead, succeeded with: " + writeResult);
670
} catch (WriteConcernException e) {
671
+ assertNotNull(e.getServerAddress());
672
assertNotNull(e.getErrorMessage());
- assertTrue(e.getCode() > 0);
673
assertEquals(1, e.getCommandResult().get("n"));
674
assertEquals(id, e.getCommandResult().get("upserted"));
675
}
0 commit comments