From 600f02b4075f6c18f500c03405f243e30bd3c2e0 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Fri, 28 Nov 2014 10:29:24 +0100 Subject: [PATCH] [TEST] Add an assert for null indices in InternalEngineIntegrationTest --- .../index/engine/internal/InternalEngineIntegrationTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/elasticsearch/index/engine/internal/InternalEngineIntegrationTest.java b/src/test/java/org/elasticsearch/index/engine/internal/InternalEngineIntegrationTest.java index 34560a0630a..7e61fe5873b 100644 --- a/src/test/java/org/elasticsearch/index/engine/internal/InternalEngineIntegrationTest.java +++ b/src/test/java/org/elasticsearch/index/engine/internal/InternalEngineIntegrationTest.java @@ -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());