aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-04-06 16:12:06 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-04-06 16:12:06 +0200
commit06db9c31a773ce1b7bf31745c694590dde9d10c4 (patch)
treeeafae8a6a77cb8880c90226005b0b70bd001907b
parent53b695838275d30ab0da26a54bcac93b5577f3fe (diff)
downloadsonarqube-06db9c31a773ce1b7bf31745c694590dde9d10c4.tar.gz
sonarqube-06db9c31a773ce1b7bf31745c694590dde9d10c4.zip
SONAR-6732 stabilize ComputeEngineSettingsTest
be less optimistic on speed of build, wait longer for concurrent thread
-rw-r--r--server/sonar-server/src/test/java/org/sonar/ce/settings/ComputeEngineSettingsTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/ce/settings/ComputeEngineSettingsTest.java b/server/sonar-server/src/test/java/org/sonar/ce/settings/ComputeEngineSettingsTest.java
index 0e60ba6bcc4..c7e26651285 100644
--- a/server/sonar-server/src/test/java/org/sonar/ce/settings/ComputeEngineSettingsTest.java
+++ b/server/sonar-server/src/test/java/org/sonar/ce/settings/ComputeEngineSettingsTest.java
@@ -37,7 +37,7 @@ import org.sonar.db.DbClient;
import org.sonar.db.property.PropertiesDao;
import org.sonar.db.property.PropertyDto;
-import static java.util.concurrent.TimeUnit.MILLISECONDS;
+import static java.util.concurrent.TimeUnit.SECONDS;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.entry;
import static org.mockito.Mockito.mock;
@@ -303,7 +303,7 @@ public class ComputeEngineSettingsTest {
public void blockingExecute() throws InterruptedException {
this.start();
- this.latch.await(100, MILLISECONDS);
+ this.latch.await(5, SECONDS);
}
@Override