[TEST] Wait for green before testing IW settings
This commit is contained in:
parent
eba761e368
commit
0c2fd314fc
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue