From: Sébastien Lesaint Date: Wed, 6 Apr 2016 14:12:06 +0000 (+0200) Subject: SONAR-6732 stabilize ComputeEngineSettingsTest X-Git-Tag: 5.5-RC1~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=06db9c31a773ce1b7bf31745c694590dde9d10c4;p=sonarqube.git SONAR-6732 stabilize ComputeEngineSettingsTest be less optimistic on speed of build, wait longer for concurrent thread --- 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