aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-06 17:18:59 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-06 17:19:10 +0200
commit2eea2bf43012b3f67dd72523a3eb7b99d9f18649 (patch)
treea4d0a798d4b8fb14868f0f8a1e0dd9ca1c0fa4df /sonar-plugin-api
parent4275b2141c04fd4f4f3f0b289e73d3714daf05a1 (diff)
downloadsonarqube-2eea2bf43012b3f67dd72523a3eb7b99d9f18649.tar.gz
sonarqube-2eea2bf43012b3f67dd72523a3eb7b99d9f18649.zip
Fix unstability of CommandExecutorTest
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/test/java/org/sonar/api/utils/command/CommandExecutorTest.java4
1 files changed, 1 insertions, 3 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 e61f87c0e00..3c95ed9a8a5 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
@@ -135,9 +135,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)
- .isLessThan(400L);
+ assertThat(duration).as(e.getMessage()).isGreaterThan(270L);
}
}