zhang-arvin opened a new pull request, #20071: URL: https://github.com/apache/druid/pull/20071
## Purpose Wrap `CountDownLatch.await(timeout, unit)` calls in `assertTrue()` to prevent silent test timeouts. When the boolean return value of `await()` is ignored, a timeout causes the test to silently pass instead of failing. ## Changes - `PostJoinCursorTest.java`: wrap `countDownLatch.await(1, TimeUnit.SECONDS)` in `assertTrue()` - `CoordinatorSegmentMetadataCacheTest.java`: wrap `latch.await(1, TimeUnit.SECONDS)` in `Assert.assertTrue()` - `ServerManagerTest.java`: wrap 4 occurrences of `factory.notifyLatch.await(1000, TimeUnit.MILLISECONDS)` in `Assert.assertTrue()` - `JettyTest.java`: wrap `latch.await(5, TimeUnit.SECONDS)` in `Assert.assertTrue()` Closes #9285 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
