Skip to content

Commit

Permalink
fix #6625 - reverse assertEquals params
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Mitrofanov <mitrofmep@gmail.com>
  • Loading branch information
mitrofmep committed Apr 5, 2023
1 parent 24bdfb0 commit 964887f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3228,13 +3228,13 @@ public void testWithRandomException() throws IOException {
syncedDocs.addAll(unsynced);
unsynced.clear();
} catch (TranslogException | MockDirectoryWrapper.FakeIOException ex) {
assertEquals(failableTLog.getTragicException(), ex);
assertEquals(ex, failableTLog.getTragicException());
} catch (IOException ex) {
assertEquals(ex.getMessage(), "__FAKE__ no space left on device");
assertEquals(failableTLog.getTragicException(), ex);
assertEquals(ex, failableTLog.getTragicException());
} catch (RuntimeException ex) {
assertEquals(ex.getMessage(), "simulated");
assertEquals(failableTLog.getTragicException(), ex);
assertEquals(ex, failableTLog.getTragicException());
} finally {
Checkpoint checkpoint = Translog.readCheckpoint(config.getTranslogPath());
if (checkpoint.numOps == unsynced.size() + syncedDocs.size()) {
Expand Down

0 comments on commit 964887f

Please sign in to comment.