Skip to content
Browse files

Make threading test more resilient to being run on heavily loaded com…

…puter

This test would fail if I was converting QT movies
  • Loading branch information...
1 parent a8b5d1d commit 6f7ff3d59accbfc5b3a83edb1ae75d0d37148f0d @kkrugler kkrugler committed Apr 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/java/bixo/utils/ThreadedExecutorTest.java
View
4 src/test/java/bixo/utils/ThreadedExecutorTest.java
@@ -27,11 +27,11 @@
@Test
public void testNoRejection() {
- final long timeoutInMS = 20;
+ final long timeoutInMS = 100;
ThreadedExecutor executor = new ThreadedExecutor(1, timeoutInMS);
- for (int i = 0; i < 100; i++) {
+ for (int i = 0; i < 10; i++) {
try {
Runnable cmd = new Runnable() {
public void run() {

0 comments on commit 6f7ff3d

Please sign in to comment.
Something went wrong with that request. Please try again.