From: erik Date: Mon, 12 Jul 2010 13:57:11 +0000 (+0000) Subject: more robustness in lock test. X-Git-Tag: wamblee-utils-0.3~98 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=5e2a32e2e36575926436dc58cc6fa8682a7cf229;p=utils more robustness in lock test. --- diff --git a/support/general/src/test/java/org/wamblee/concurrency/AbstractLockTestCase.java b/support/general/src/test/java/org/wamblee/concurrency/AbstractLockTestCase.java index 684678f8..b6e5b5bf 100644 --- a/support/general/src/test/java/org/wamblee/concurrency/AbstractLockTestCase.java +++ b/support/general/src/test/java/org/wamblee/concurrency/AbstractLockTestCase.java @@ -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