]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6732 stabilize ComputeEngineSettingsTest
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 6 Apr 2016 14:12:06 +0000 (16:12 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Wed, 6 Apr 2016 14:12:06 +0000 (16:12 +0200)
be less optimistic on speed of build, wait longer for concurrent thread

server/sonar-server/src/test/java/org/sonar/ce/settings/ComputeEngineSettingsTest.java

index 0e60ba6bcc4c6f966b4235db87ab2962263bc66b..c7e26651285abe463c348d707a407b9ddcf24110 100644 (file)
@@ -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