add info in test for actual search failures
This commit is contained in:
parent
849a3677cd
commit
30075bb6f9
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue