diff --git a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java index edab9876d5b..2532d32561b 100644 --- a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java +++ b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java @@ -209,8 +209,7 @@ public class RestoreBackwardsCompatIT extends AbstractSnapshotIntegTestCase { client().admin().cluster().prepareRestoreSnapshot(repo, snapshot).setRestoreGlobalState(true).setWaitForCompletion(true).get(); fail("should have failed to restore - " + repo); } catch (SnapshotRestoreException ex) { - assertThat(ex.getMessage(), containsString("cannot restore index")); - assertThat(ex.getMessage(), containsString("because it cannot be upgraded")); + assertThat(ex.getMessage(), containsString("snapshot does not exist")); } } }