Skip to content

Commit

Permalink
Make threading test more resilient to being run on heavily loaded com…
Browse files Browse the repository at this point in the history
…puter

This test would fail if I was converting QT movies
  • Loading branch information
kkrugler committed Apr 17, 2012
1 parent a8b5d1d commit 6f7ff3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/bixo/utils/ThreadedExecutorTest.java
Expand Up @@ -27,11 +27,11 @@ public class ThreadedExecutorTest {

@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() {
Expand Down

0 comments on commit 6f7ff3d

Please sign in to comment.