more robustness in lock test.
[utils] / support / general / src / test / java / org / wamblee / concurrency / AbstractLockTestCase.java
index a4143c0b9748739321b8999d421becf68546f505..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 / 10); // 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