diff --git a/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java b/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java index 3672ceb4c3f..da3570ddc02 100644 --- a/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java +++ b/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java @@ -325,6 +325,8 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest @Test public void testWildcardBehaviour_snapshotRestore() throws Exception { createIndex("foobar"); + ensureGreen("foobar"); + waitForRelocation(); PutRepositoryResponse putRepositoryResponse = client().admin().cluster().preparePutRepository("dummy-repo") .setType("fs").setSettings(ImmutableSettings.settingsBuilder().put("location", newTempDir())).get(); @@ -341,7 +343,7 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest assertAcked(prepareCreate("barbaz")); //TODO: temporary work-around for #5531 - ensureGreen(); + ensureGreen("barbaz"); waitForRelocation(); options = IndicesOptions.fromOptions(false, false, true, false); verify(snapshot("snap3", "foo*", "bar*").setIndicesOptions(options), false);