From 982e4b067fda7e6fa1c4f9fe0e99f7cd016c1845 Mon Sep 17 00:00:00 2001 From: Ceki Gulcu Date: Sun, 4 Aug 2024 21:30:31 +0200 Subject: [PATCH] clearer assertion take II Signed-off-by: Ceki Gulcu --- .../org/slf4j/testHarness/MultithreadedInitializationTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slf4j-api/src/test/java/org/slf4j/testHarness/MultithreadedInitializationTest.java b/slf4j-api/src/test/java/org/slf4j/testHarness/MultithreadedInitializationTest.java index a336b87eb..81eedc8b7 100644 --- a/slf4j-api/src/test/java/org/slf4j/testHarness/MultithreadedInitializationTest.java +++ b/slf4j-api/src/test/java/org/slf4j/testHarness/MultithreadedInitializationTest.java @@ -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();