Skip to content

Commit

Permalink
Better failure logging in testFailsIfRegisterHoldsSpuriousValue (#100888
Browse files Browse the repository at this point in the history
)

Relates #99422
  • Loading branch information
DaveCTurner authored Oct 16, 2023
1 parent 76b9d95 commit d01c61f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ public BytesReference onCompareAndExchange(BytesRegister register, BytesReferenc
analyseRepository(request);
assertFalse(sawSpuriousValue.get());
} catch (RepositoryVerificationException e) {
assertTrue(sawSpuriousValue.get());
if (sawSpuriousValue.get() == false) {
fail(e, "did not see spurious value, so why did the verification fail?");
}
}
}

Expand Down

0 comments on commit d01c61f

Please sign in to comment.