diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-06 17:18:59 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-06 17:19:10 +0200 |
commit | 2eea2bf43012b3f67dd72523a3eb7b99d9f18649 (patch) | |
tree | a4d0a798d4b8fb14868f0f8a1e0dd9ca1c0fa4df /sonar-plugin-api | |
parent | 4275b2141c04fd4f4f3f0b289e73d3714daf05a1 (diff) | |
download | sonarqube-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.java | 4 |
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); } } |