[TEST] Add an assert for null indices in InternalEngineIntegrationTest

This commit is contained in:
Lee Hinman 2014-11-28 10:29:24 +01:00
parent 8456489773
commit 600f02b407
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ public class InternalEngineIntegrationTest extends ElasticsearchIntegrationTest
private void assertTotalCompoundSegments(int i, int t, String index) {
IndicesSegmentResponse indicesSegmentResponse = client().admin().indices().prepareSegments(index).get();
assertNotNull("indices segments response should contain indices", indicesSegmentResponse.getIndices());
IndexSegments indexSegments = indicesSegmentResponse.getIndices().get(index);
assertNotNull(indexSegments);
assertNotNull(indexSegments.getShards());