From: Erik Brakkee Date: Mon, 12 Jul 2010 13:57:11 +0000 (+0000) Subject: more robustness in lock test. X-Git-Tag: wamblee-utils-0.7~348 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=2a90c02cde9e8e31ecd4cf01baf91f798b262eb3;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