From dd4486b5c55f9e2d39a9820824efe59c7b93546a Mon Sep 17 00:00:00 2001 From: Ceki Gulcu Date: Sun, 4 Aug 2024 21:25:43 +0200 Subject: [PATCH] clearer assertion Signed-off-by: Ceki Gulcu --- .../org/slf4j/testHarness/MultithreadedInitializationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c534bad1a..a336b87eb 100644 --- a/slf4j-api/src/test/java/org/slf4j/testHarness/MultithreadedInitializationTest.java +++ b/slf4j-api/src/test/java/org/slf4j/testHarness/MultithreadedInitializationTest.java @@ -41,7 +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(expectedEventCount + " < " + recordedEventCount + "+" + LENIENCY_COUNT, expectedEventCount < (recordedEventCount + LENIENCY_COUNT)); } abstract protected long getRecordedEventCount();