From fe969bec52285982eb2bc6c9ab394474475e9de2 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Mon, 3 Oct 2016 14:46:10 -0700 Subject: [PATCH] Skip prereleases for restore bwc tests too --- .../org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java index 494aa7d1095..6ed3d64e46e 100644 --- a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java +++ b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java @@ -96,7 +96,7 @@ public class RestoreBackwardsCompatIT extends AbstractSnapshotIntegTestCase { SortedSet expectedVersions = new TreeSet<>(); for (Version v : VersionUtils.allVersions()) { if (VersionUtils.isSnapshot(v)) continue; // snapshots are unreleased, so there is no backcompat yet - if (v.isAlpha()) continue; // no guarantees for alpha releases + if (v.isRelease() == false) continue; // no guarantees for prereleases if (v.onOrBefore(Version.V_2_0_0_beta1)) continue; // we can only test back one major lucene version if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself expectedVersions.add(v.toString());