From: Sébastien Lesaint Date: Thu, 24 Mar 2016 16:33:49 +0000 (+0100) Subject: SONAR-7435 increase timeout and reset sharedMemory to stabilize test X-Git-Tag: 5.5-M12~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10123aa997853b3841d1282635bd2035793dc3cb;p=sonarqube.git SONAR-7435 increase timeout and reset sharedMemory to stabilize test --- diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/app/WebServerWatcherImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/app/WebServerWatcherImplTest.java index d4a9ae285a4..72573ce6f22 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/app/WebServerWatcherImplTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/app/WebServerWatcherImplTest.java @@ -38,7 +38,7 @@ import static org.assertj.core.api.Assertions.assertThat; public class WebServerWatcherImplTest { @Rule - public Timeout timeout = Timeout.seconds(1); + public Timeout timeout = Timeout.seconds(5); @Rule public LogTester logTester = new LogTester(); @Rule @@ -102,7 +102,7 @@ public class WebServerWatcherImplTest { } private void setWebServerOperational() { - try (DefaultProcessCommands processCommands = DefaultProcessCommands.secondary(sharedDir, ProcessId.WEB_SERVER.getIpcIndex())) { + try (DefaultProcessCommands processCommands = DefaultProcessCommands.main(sharedDir, ProcessId.WEB_SERVER.getIpcIndex())) { processCommands.setOperational(); } }