]> source.dussan.org Git - sonarqube.git/commitdiff
Improve CommandExecutorTest
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 27 Jun 2014 08:23:47 +0000 (10:23 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 27 Jun 2014 08:23:47 +0000 (10:23 +0200)
sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java

index d82d93bdc5590ef4c7569c6aa20d571ed34c233b..f06adc75dd8b3f598b3d5fca7c024cb74d950cf9 100644 (file)
@@ -139,7 +139,7 @@ public class CommandExecutorTest {
       // Future.get(), which is used by CommandExecutor, has not a precise timeout.
       // See http://stackoverflow.com/questions/23199820/future-get-timeout-precision-and-possible-alternatives
       // The deviation seems to be in both directions, so it implies to test something like >270ms instead of >300ms
-      assertThat(duration).as(e.getMessage()).isGreaterThan(270L);
+      assertThat(duration).as(e.getMessage()).isGreaterThan(250L);
     }
   }