From: simonbrandhof Date: Wed, 27 Apr 2011 23:22:45 +0000 (+0200) Subject: Increase timeout of CommandExecutorTest for slow boxes X-Git-Tag: 2.8~98 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14df43a613862b87ea45df6542e43ee7445e5c73;p=sonarqube.git Increase timeout of CommandExecutorTest for slow boxes --- diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java index b0f7bb7ef7b..748a2839e7a 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java @@ -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)); } }