Tests: Add more assertions to SearchStatsTests.

This commit is contained in:
Adrien Grand 2015-04-03 16:09:57 +02:00
parent adcb782423
commit d3b1567f79
1 changed files with 1 additions and 0 deletions

View File

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