Skip to content

Commit

Permalink
fix Checkertest
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiangs18 committed Jan 17, 2024
1 parent 42bb76c commit d58c0d2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ public void unparseable() throws Exception {
getInstance(e);
fail("expected exception");
} catch (InvocationTargetException ex) {
TestCommon.assertExceptionCorrect((Exception) ex.getTargetException(),
new AuthStorageException("Unable to parse duplicate key error: some "));

assertThat("some dup key message", ex.getTargetException().getMessage(),
is("Unable to parse duplicate key error: Write operation error on server 127.0.0.1:27017. " +
"Write error: WriteError{code=11000, message='some "));
}
}

Expand Down

0 comments on commit d58c0d2

Please sign in to comment.