curator-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Serrano <mar...@attivio.com>
Subject TestingZooKeeperMain blockUntilStarted sleeps 1s
Date Mon, 31 Aug 2015 00:55:37 GMT
Hi,

I'm wondering what the purpose of the Thread.sleep(1000) is in the
TestingZooKeeperMain.blockUntilStarted() method.  We have some features
highly dependent on ZK-based services and these tests will start a
testing ZK for each test.  However most of the tests are otherwise very
fast.  The 1 second sleep adds up and makes the tests run unnecessarily
slow. 

Can this sleep be removed or reduced?  Depending on a sleep for anything
seems highly suspect in this case.

Thanks,
Martin

Mime
View raw message