aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-search')
-rw-r--r--server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java6
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
}
}