From 9e3d399ad2ca6f1ffbcb2d31796f263611c57430 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 8 Sep 2016 16:15:56 +0200 Subject: [PATCH] Skip unreleased versions in RestoreBackwardsCompatIT --- .../org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java index 494aa7d1095..8c7c599b4e6 100644 --- a/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java +++ b/core/src/test/java/org/elasticsearch/bwcompat/RestoreBackwardsCompatIT.java @@ -98,6 +98,7 @@ public class RestoreBackwardsCompatIT extends AbstractSnapshotIntegTestCase { 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.onOrBefore(Version.V_2_0_0_beta1)) continue; // we can only test back one major lucene version + if (v.onOrBefore(Version.V_5_0_0)) continue; // we have not yet released this if (v.equals(Version.CURRENT)) continue; // the current version is always compatible with itself expectedVersions.add(v.toString()); }