diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-12-15 21:59:49 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-12-15 21:59:56 +0100 |
commit | 6962446f69eab08e83f120b98a315b1aef6c11ca (patch) | |
tree | 4c7d03c1db9ea30f778fe0dbffed32f41211f8e4 /server/sonar-search | |
parent | 628f851869b99d557b29d74d8ce9fead1ec76cfe (diff) | |
download | sonarqube-6962446f69eab08e83f120b98a315b1aef6c11ca.tar.gz sonarqube-6962446f69eab08e83f120b98a315b1aef6c11ca.zip |
Improve SearchServerTest to prepare upgrade to ES 1.4
Diffstat (limited to 'server/sonar-search')
-rw-r--r-- | server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java b/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java index f2be9704667..8a9823eccc6 100644 --- a/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java +++ b/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java @@ -40,6 +40,7 @@ import org.sonar.process.Props; import java.util.Properties; import static org.fest.assertions.Assertions.assertThat; +import static org.fest.assertions.Fail.fail; public class SearchServerTest { @@ -84,9 +85,10 @@ public class SearchServerTest { searchServer.awaitStop(); searchServer = null; try { - assertThat(client.admin().cluster().prepareClusterStats().get().getStatus()).isNotEqualTo(ClusterHealthStatus.GREEN); + client.admin().cluster().prepareClusterStats().get(); + fail(); } catch (NoNodeAvailableException exception) { - assertThat(exception.getMessage()).isEqualTo("No node available"); + // ok } } |