Skip to content

Commit

Permalink
clearer assertion take II
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <[email protected]>
  • Loading branch information
ceki committed Aug 4, 2024
1 parent dd4486b commit 982e4b0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public void multiThreadedInitialization() throws InterruptedException, BrokenBar
long expectedEventCount = eventCount.get() + extraLogEvents();

assertTrue(expectedEventCount + " >= " + recordedEventCount, expectedEventCount >= recordedEventCount);
assertTrue(expectedEventCount + " < " + recordedEventCount + "+" + LENIENCY_COUNT, expectedEventCount < (recordedEventCount + LENIENCY_COUNT));
}
assertTrue("unmet condition: " + expectedEventCount + " < " + recordedEventCount + "+" + LENIENCY_COUNT, expectedEventCount < (recordedEventCount + LENIENCY_COUNT)); }

abstract protected long getRecordedEventCount();

Expand Down

0 comments on commit 982e4b0

Please sign in to comment.