From 68728e6bee779371cf0ba9d1c782bd6e6fc2b927 Mon Sep 17 00:00:00 2001 From: Chris Earle Date: Fri, 6 May 2016 15:08:40 -0400 Subject: [PATCH] Use Strict version check for VersionCompatibilityTests This changes the loose usage of onOrBefore to equals so that when we add beta1, this test fails again. Original commit: elastic/x-pack-elasticsearch@fe4f2cbdf0e8658833dd945a3049bb1bd9737b73 --- .../org/elasticsearch/shield/VersionCompatibilityTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/VersionCompatibilityTests.java b/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/VersionCompatibilityTests.java index 6117701d4a8..b7ddf644024 100644 --- a/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/VersionCompatibilityTests.java +++ b/elasticsearch/x-pack/shield/src/test/java/org/elasticsearch/shield/VersionCompatibilityTests.java @@ -37,6 +37,6 @@ public class VersionCompatibilityTests extends ESTestCase { * */ assertThat("Remove workaround in LicenseService class when es core supports merging cluster level custom metadata", - Version.CURRENT.onOrBefore(Version.V_5_0_0_alpha2), is(true)); + Version.CURRENT.equals(Version.V_5_0_0), is(true)); } }