[TEST] Wait for green before testing IW settings

This commit is contained in:
Simon Willnauer 2014-11-26 21:47:24 +01:00
parent eba761e368
commit 0c2fd314fc
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ public class InternalEngineIntegrationTest extends ElasticsearchIntegrationTest
@Test
public void testSetIndexCompoundOnFlush() {
client().admin().indices().prepareCreate("test").setSettings(ImmutableSettings.builder().put("number_of_replicas", 0).put("number_of_shards", 1)).get();
ensureGreen();
client().prepareIndex("test", "foo").setSource("field", "foo").get();
refresh();
assertTotalCompoundSegments(1, 1, "test");