summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java')
-rw-r--r--core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java
index 394f09120d..9ee8fa654b 100644
--- a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java
+++ b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java
@@ -89,7 +89,8 @@ public class RestoreBackwardsCompatIT extends AbstractSnapshotIntegTestCase {
SortedSet<String> expectedVersions = new TreeSet<>();
for (Version v : VersionUtils.allReleasedVersions()) {
- if (VersionUtils.isSnapshot(v)) continue; // snapshots are unreleased, so there is no backcompat yet
+ // The current version is in the "released" list even though it isn't released for historical reasons
+ if (v == Version.CURRENT) continue;
if (v.isRelease() == false) continue; // no guarantees for prereleases
if (v.before(Version.CURRENT.minimumIndexCompatibilityVersion())) continue; // we only support versions N and N-1
if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself