mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
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();
|
.execute().actionGet();
|
||||||
|
|
||||||
assertThat(search.hits().totalHits(), equalTo(5l));
|
assertThat(search.hits().totalHits(), equalTo(5l));
|
||||||
|
assertThat(search.hits().hits().length, equalTo(5));
|
||||||
|
assertThat(search.getFailedShards(), equalTo(0));
|
||||||
|
|
||||||
for (SearchHit hit : search.hits()) {
|
for (SearchHit hit : search.hits()) {
|
||||||
// LUCENE 3.1 UPGRADE: Caused adding the space at the end...
|
// LUCENE 3.1 UPGRADE: Caused adding the space at the end...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user