aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-main
diff options
context:
space:
mode:
authorphilippe-perrin-sonarsource <philippe.perrin@sonarsource.com>2019-07-26 14:39:35 +0200
committerSonarTech <sonartech@sonarsource.com>2019-07-30 20:24:27 +0200
commit08c0d3c991695c55b7f02208da0bf11758790403 (patch)
treec79d59a593b71651ea4f3cf978c4ec3ae9238615 /server/sonar-main
parent2e9eeb4eb9c26bac7f8df8e568018ab843e95a54 (diff)
downloadsonarqube-08c0d3c991695c55b7f02208da0bf11758790403.tar.gz
sonarqube-08c0d3c991695c55b7f02208da0bf11758790403.zip
Fix unit tests for windows
Diffstat (limited to 'server/sonar-main')
-rw-r--r--server/sonar-main/src/test/java/org/sonar/application/es/EsInstallationTest.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/sonar-main/src/test/java/org/sonar/application/es/EsInstallationTest.java b/server/sonar-main/src/test/java/org/sonar/application/es/EsInstallationTest.java
index 31cb90d4115..04ea9a5ce78 100644
--- a/server/sonar-main/src/test/java/org/sonar/application/es/EsInstallationTest.java
+++ b/server/sonar-main/src/test/java/org/sonar/application/es/EsInstallationTest.java
@@ -162,11 +162,7 @@ public class EsInstallationTest {
EsInstallation underTest = new EsInstallation(props);
- if (System.getProperty("os.name").startsWith("Windows")) {
- assertThat(underTest.getExecutable()).isEqualTo(new File(sqHomeDir, "elasticsearch/bin/elasticsearch.bat"));
- } else {
- assertThat(underTest.getExecutable()).isEqualTo(new File(sqHomeDir, "elasticsearch/bin/elasticsearch"));
- }
+ assertThat(underTest.getExecutable()).isEqualTo(new File(sqHomeDir, "elasticsearch/bin/elasticsearch"));
}
@Test