add info in test for actual search failures

This commit is contained in:
Shay Banon 2013-03-01 00:00:09 +01:00
parent 849a3677cd
commit 30075bb6f9
1 changed files with 3 additions and 3 deletions

View File

@ -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");