From 30075bb6f977ac2c4279e87a1b44a08e07ccd70b Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Fri, 1 Mar 2013 00:00:09 +0100 Subject: [PATCH] add info in test for actual search failures --- .../search/basic/TransportTwoNodesSearchTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/elasticsearch/test/integration/search/basic/TransportTwoNodesSearchTests.java b/src/test/java/org/elasticsearch/test/integration/search/basic/TransportTwoNodesSearchTests.java index aae17e475eb..a9e4e14e7e7 100644 --- a/src/test/java/org/elasticsearch/test/integration/search/basic/TransportTwoNodesSearchTests.java +++ b/src/test/java/org/elasticsearch/test/integration/search/basic/TransportTwoNodesSearchTests.java @@ -357,15 +357,15 @@ public class TransportTwoNodesSearchTests extends AbstractNodesTests { assertThat(response.getFailedShards(), equalTo(0)); response = client.search(searchRequest("test").searchType(QUERY_THEN_FETCH).source(source)).actionGet(); - assertThat(response.getShardFailures().length, equalTo(0)); + assertThat(Arrays.toString(response.getShardFailures()), response.getShardFailures().length, equalTo(0)); assertThat(response.getHits().hits().length, equalTo(0)); response = client.search(searchRequest("test").searchType(DFS_QUERY_AND_FETCH).source(source)).actionGet(); - assertThat(response.getShardFailures().length, equalTo(0)); + assertThat(Arrays.toString(response.getShardFailures()), response.getShardFailures().length, equalTo(0)); assertThat(response.getHits().hits().length, equalTo(0)); response = client.search(searchRequest("test").searchType(DFS_QUERY_THEN_FETCH).source(source)).actionGet(); - assertThat(response.getShardFailures().length, equalTo(0)); + assertThat(Arrays.toString(response.getShardFailures()), response.getShardFailures().length, equalTo(0)); assertThat(response.getHits().hits().length, equalTo(0)); logger.info("Done Testing failed search");