more robustness in lock test.
[utils] / support / general / src / test / java / org / wamblee / concurrency / AbstractLockTestCase.java
index 684678f854b5319cbbd66f22734abb6ed365db68..b6e5b5bfe96907390011690a7f69f9e817389010 100644 (file)
@@ -61,7 +61,7 @@ public abstract class AbstractLockTestCase extends TestCase {
     public void testLock() throws InterruptedException {
         Thread t1 = runThread();
         Thread t2 = runThread();
-        TimingUtils.sleep(SLEEP_TIME); // give threads a chance to start
+        TimingUtils.sleep(SLEEP_TIME/2); // give threads a chance to start
         // up.
 
         assertEquals(2, tracker.getEventCount(STARTED)); // both threads