]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7435 increase timeout and reset sharedMemory to stabilize test
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 24 Mar 2016 16:33:49 +0000 (17:33 +0100)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 25 Mar 2016 16:51:16 +0000 (17:51 +0100)
server/sonar-ce/src/test/java/org/sonar/ce/app/WebServerWatcherImplTest.java

index d4a9ae285a428697a0d3485a146a0e7054e15796..72573ce6f22629e3f00e94f6d3b54419a868a38d 100644 (file)
@@ -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();
     }
   }