more robustness in lock test.
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Mon, 12 Jul 2010 13:57:11 +0000 (13:57 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Mon, 12 Jul 2010 13:57:11 +0000 (13:57 +0000)
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