]> source.dussan.org Git - sonarqube.git/commitdiff
Increase timeout of CommandExecutorTest for slow boxes
authorsimonbrandhof <simon.brandhof@gmail.com>
Wed, 27 Apr 2011 23:22:45 +0000 (01:22 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Wed, 27 Apr 2011 23:22:45 +0000 (01:22 +0200)
sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java

index b0f7bb7ef7bcc3b37214c96241ab4ca0ae034b9a..748a2839e7a9ca686596f84ffade56cafa696ba9 100644 (file)
@@ -44,11 +44,11 @@ public class CommandExecutorTest {
     String executable = getScript("forever");
     long start = System.currentTimeMillis();
     try {
-      CommandExecutor.create().execute(Command.create(executable), 100L);
+      CommandExecutor.create().execute(Command.create(executable), 300L);
       fail();
     } catch (CommandException e) {
       long duration = System.currentTimeMillis()-start;
-      assertThat(e.getMessage(), duration, greaterThanOrEqualTo(100L));
+      assertThat(e.getMessage(), duration, greaterThanOrEqualTo(300L));
       assertThat(e.getMessage(), duration, lessThan(1000L));
     }
   }