Author: shawkins
Date: 2009-04-09 13:37:28 -0400 (Thu, 09 Apr 2009)
New Revision: 738
Modified:
trunk/common-internal/src/test/java/com/metamatrix/common/queue/TestQueueWorkerPool.java
Log:
adding a valid range so that the test is more tolerant
Modified:
trunk/common-internal/src/test/java/com/metamatrix/common/queue/TestQueueWorkerPool.java
===================================================================
---
trunk/common-internal/src/test/java/com/metamatrix/common/queue/TestQueueWorkerPool.java 2009-04-09
17:28:05 UTC (rev 737)
+++
trunk/common-internal/src/test/java/com/metamatrix/common/queue/TestQueueWorkerPool.java 2009-04-09
17:37:28 UTC (rev 738)
@@ -150,7 +150,7 @@
}, 0, 5, TimeUnit.MILLISECONDS);
Thread.sleep(99);
future.cancel(true);
- assertEquals(10, result.size());
+ assertTrue(result.size() > 8 && result.size() < 12);
}
@Test public void testFailingWork() throws Exception {