Author: manik.surtani(a)jboss.com
Date: 2007-10-30 19:16:36 -0400 (Tue, 30 Oct 2007)
New Revision: 4707
Modified:
core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java
Log:
Make sure we allow for async threads to complete
Modified: core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java 2007-10-30
18:12:24 UTC (rev 4706)
+++ core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java 2007-10-30
23:16:36 UTC (rev 4707)
@@ -384,7 +384,8 @@
assertEquals("Cache1 correct", removeTest ? null : VALUE2,
cache1.get(FQNA, KEY));
// sleep a bit more to ensure the cache2 thread completes
- TestingUtil.sleepThread(5);
+ TestingUtil.sleepThread(500);
+
CacheMode mode = cache2.getConfiguration().getCacheMode();
boolean expectNull = (removeTest || mode == CacheMode.INVALIDATION_ASYNC || mode ==
CacheMode.INVALIDATION_SYNC);
assertEquals("Cache2 correct", expectNull ? null : VALUE2,
cache2.get(FQNA, KEY));
Show replies by date