[TEST] Add an assert for null indices in InternalEngineIntegrationTest
This commit is contained in:
parent
8456489773
commit
600f02b407
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue