improve test: check hits length and zero failures
This commit is contained in:
parent
8e027b3baf
commit
be2a456cc0
|
@ -292,6 +292,8 @@ public class HighlighterSearchTests extends AbstractNodesTests {
|
|||
.execute().actionGet();
|
||||
|
||||
assertThat(search.hits().totalHits(), equalTo(5l));
|
||||
assertThat(search.hits().hits().length, equalTo(5));
|
||||
assertThat(search.getFailedShards(), equalTo(0));
|
||||
|
||||
for (SearchHit hit : search.hits()) {
|
||||
// LUCENE 3.1 UPGRADE: Caused adding the space at the end...
|
||||
|
|
Loading…
Reference in New Issue