Author: shawkins
Date: 2010-07-13 13:56:20 -0400 (Tue, 13 Jul 2010)
New Revision: 2337
Modified:
trunk/engine/src/test/java/org/teiid/common/queue/TestThreadReuseExecutor.java
Log:
TEIID-1151 fixing unit test
Modified: trunk/engine/src/test/java/org/teiid/common/queue/TestThreadReuseExecutor.java
===================================================================
---
trunk/engine/src/test/java/org/teiid/common/queue/TestThreadReuseExecutor.java 2010-07-13
16:32:31 UTC (rev 2336)
+++
trunk/engine/src/test/java/org/teiid/common/queue/TestThreadReuseExecutor.java 2010-07-13
17:56:20 UTC (rev 2337)
@@ -146,13 +146,13 @@
public void run() {
result.add("hello"); //$NON-NLS-1$
try {
- Thread.sleep(75);
+ Thread.sleep(70);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
}, 0, 30, TimeUnit.MILLISECONDS);
- Thread.sleep(140);
+ Thread.sleep(120);
future.cancel(true);
assertEquals(2, result.size());
}
@@ -201,6 +201,7 @@
return false;
}
}, 1);
+ Thread.sleep(20); //ensure a later timestamp
FutureWork<Boolean> work4 = new FutureWork<Boolean>(new
Callable<Boolean>() {
public Boolean call() throws Exception {
order.add(4);
Show replies by date