Author: ningjiang
Date: Mon Sep 15 21:07:34 2008
New Revision: 695722
URL: http://svn.apache.org/viewvc?rev=695722&view=rev
Log:
Fixed the unit test error of CountingLatchTest
Modified:
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/util/concurrent/CountingLatchTest.java
Modified:
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/util/concurrent/CountingLatchTest.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/util/concurrent/CountingLatchTest.java?rev=695722&r1=695721&r2=695722&view=diff
==============================================================================
---
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/util/concurrent/CountingLatchTest.java
(original)
+++
activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/util/concurrent/CountingLatchTest.java
Mon Sep 15 21:07:34 2008
@@ -88,6 +88,7 @@
for (int i = 0; i < COUNT; i++) {
latch.increment();
sleep();
+
}
}
});
@@ -102,14 +103,12 @@
}
});
up.start();
- down.start();
- assertFalse("We can't be done in 100 ms", latch.await(100,
TimeUnit.MILLISECONDS));
- // but we can block until we are done
+ down.start();
assertLatchDone();
}
/**
- * Await the latch and assert the count is 0 when it does return
+ * Await the latch and assert the count is 0 when it does return
* @throws InterruptedException
*/
private void assertLatchDone() throws InterruptedException {