CalvinKirs commented on code in PR #3392: URL: https://github.com/apache/bookkeeper/pull/3392#discussion_r917395456
########## bookkeeper-server/src/test/java/org/apache/bookkeeper/test/BookieZKExpireTest.java: ########## @@ -95,11 +97,11 @@ conf, new TestBookieImpl(conf), assertNotNull("Send thread not found", sendthread); sendthread.suspend(); - Thread.sleep(2 * conf.getZkTimeout()); + await().atMost(2L * conf.getZkTimeout(), TimeUnit.MILLISECONDS).await(); sendthread.resume(); // allow watcher thread to run - Thread.sleep(3000); + await().atMost(3, TimeUnit.SECONDS).await(); Review Comment: Thx,done -- 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: issues-unsubscr...@bookkeeper.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org