From 06db9c31a773ce1b7bf31745c694590dde9d10c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Wed, 6 Apr 2016 16:12:06 +0200 Subject: [PATCH] SONAR-6732 stabilize ComputeEngineSettingsTest be less optimistic on speed of build, wait longer for concurrent thread --- .../java/org/sonar/ce/settings/ComputeEngineSettingsTest.java | 4 ++-- 1 file 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 -- 2.39.5