aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-main
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2017-11-10 17:12:23 +0100
committerEric Hartmann <hartmann.eric@gmail.Com>2017-11-14 13:10:17 +0100
commit35128eb81138f5c4b631d2c24b7aefa2d49b4139 (patch)
treed6ac86c9f1fc3b6290ed69d1513a5bb8a3270fa0 /server/sonar-main
parentd128dc6ec39f12ab9dec3fa41bfd37102ad7dd66 (diff)
downloadsonarqube-35128eb81138f5c4b631d2c24b7aefa2d49b4139.tar.gz
sonarqube-35128eb81138f5c4b631d2c24b7aefa2d49b4139.zip
Fix ignored Selenium tests
Diffstat (limited to 'server/sonar-main')
-rw-r--r--server/sonar-main/src/test/java/org/sonar/application/SchedulerImplTest.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/server/sonar-main/src/test/java/org/sonar/application/SchedulerImplTest.java b/server/sonar-main/src/test/java/org/sonar/application/SchedulerImplTest.java
index 76fc63ea42a..96acdd8a126 100644
--- a/server/sonar-main/src/test/java/org/sonar/application/SchedulerImplTest.java
+++ b/server/sonar-main/src/test/java/org/sonar/application/SchedulerImplTest.java
@@ -29,7 +29,6 @@ import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.DisableOnDebug;
@@ -53,8 +52,6 @@ import static org.apache.commons.lang.RandomStringUtils.randomAlphanumeric;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.timeout;
-import static org.mockito.Mockito.verify;
import static org.sonar.process.ProcessId.COMPUTE_ENGINE;
import static org.sonar.process.ProcessId.ELASTICSEARCH;
import static org.sonar.process.ProcessId.WEB_SERVER;
@@ -197,37 +194,6 @@ public class SchedulerImplTest {
}
@Test
- @Ignore("false-positives on Travis CI")
- public void restart_reloads_java_commands_and_restarts_all_processes() throws Exception {
- Scheduler underTest = startAll();
-
- processLauncher.waitForProcess(WEB_SERVER).askedForRestart = true;
-
- // waiting for all processes to be stopped
- boolean stopped = false;
- while (!stopped) {
- stopped = orderedStops.size() == 3;
- Thread.sleep(1L);
- }
-
- // restarting
- verify(appReloader, timeout(60_000)).reload(settings);
- processLauncher.waitForProcessAlive(ELASTICSEARCH);
- processLauncher.waitForProcessAlive(COMPUTE_ENGINE);
- processLauncher.waitForProcessAlive(WEB_SERVER);
-
- underTest.terminate();
- // 3+3 processes have been stopped
- assertThat(orderedStops).hasSize(6);
- assertThat(processLauncher.waitForProcess(ELASTICSEARCH).isAlive()).isFalse();
- assertThat(processLauncher.waitForProcess(COMPUTE_ENGINE).isAlive()).isFalse();
- assertThat(processLauncher.waitForProcess(WEB_SERVER).isAlive()).isFalse();
-
- // verify that awaitTermination() does not block
- underTest.awaitTermination();
- }
-
- @Test
public void restart_stops_all_if_new_settings_are_not_allowed() throws Exception {
Scheduler underTest = startAll();
doThrow(new IllegalStateException("reload error")).when(appReloader).reload(settings);