Tests: Add more assertions to SearchStatsTests.
This commit is contained in:
parent
adcb782423
commit
d3b1567f79
|
@ -164,6 +164,7 @@ public class SearchStatsTests extends ElasticsearchIntegrationTest {
|
|||
.setSize(5)
|
||||
.setScroll(TimeValue.timeValueMinutes(2))
|
||||
.execute().actionGet();
|
||||
assertSearchResponse(searchResponse);
|
||||
|
||||
indicesStats = client().admin().indices().prepareStats().execute().actionGet();
|
||||
assertThat(indicesStats.getTotal().getSearch().getOpenContexts(), equalTo((long)numAssignedShards("test1")));
|
||||
|
|
Loading…
Reference in New Issue