diff --git a/src/test/java/org/elasticsearch/indices/IndicesOptionsTests.java b/src/test/java/org/elasticsearch/indices/IndicesOptionsTests.java index 11e63c9ee24..2b5fbc8df37 100644 --- a/src/test/java/org/elasticsearch/indices/IndicesOptionsTests.java +++ b/src/test/java/org/elasticsearch/indices/IndicesOptionsTests.java @@ -201,7 +201,9 @@ public class IndicesOptionsTests extends ElasticsearchIntegrationTest { options = IndicesOptions.strict(); assertAcked(prepareCreate("test2")); - ensureYellow(); + //TODO: temporary work-around for #5531 + ensureGreen(); + waitForRelocation(); verify(snapshot("snap3", "test1", "test2").setIndicesOptions(options), false); verify(restore("snap3", "test1", "test2").setIndicesOptions(options), false); } @@ -361,7 +363,9 @@ public class IndicesOptionsTests extends ElasticsearchIntegrationTest { verify(restore("snap2", "foo*", "bar*").setIndicesOptions(options), false); assertAcked(prepareCreate("barbaz")); - ensureYellow(); + //TODO: temporary work-around for #5531 + ensureGreen(); + waitForRelocation(); options = IndicesOptions.fromOptions(false, false, true, false); verify(snapshot("snap3", "foo*", "bar*").setIndicesOptions(options), false); verify(restore("snap3", "foo*", "bar*").setIndicesOptions(options), false);