From 14df43a613862b87ea45df6542e43ee7445e5c73 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Thu, 28 Apr 2011 01:22:45 +0200 Subject: [PATCH] Increase timeout of CommandExecutorTest for slow boxes --- .../java/org/sonar/api/utils/command/CommandExecutorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } } -- 2.39.5