essobedo commented on code in PR #9266: URL: https://github.com/apache/camel/pull/9266#discussion_r1091785062
########## core/camel-core/src/test/java/org/apache/camel/component/file/strategy/MarkerFileExclusiveReadLockStrategyTest.java: ########## @@ -65,7 +69,7 @@ public void testMultithreadedLocking() throws Exception { assertEquals("Line " + i, lines[i]); } - waitUntilCompleted(); + assertTrue(latch.await(10, TimeUnit.SECONDS), "Did not process the messages within 10 seconds"); Review Comment: If so you don't need both the process file counter and the count-down latch. Moreover, the latch should be final. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org