From 0ea9adb2845eda1f7192e0a016660728182e2831 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 9 Jul 2015 21:46:32 +0200 Subject: [PATCH] [TEST] Assert against minCompatVersion instead of a static string --- .../java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java b/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java index 11d448778af..ab9f921ea85 100644 --- a/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java +++ b/core/src/test/java/org/elasticsearch/discovery/zen/ZenDiscoveryTests.java @@ -242,7 +242,7 @@ public class ZenDiscoveryTests extends ElasticsearchIntegrationTest { }); assertThat(holder.get(), notNullValue()); - assertThat(holder.get().getMessage(), equalTo("Can't handle join request from a node with a version [1.6.0] that is lower than the minimum compatible version [2.0.0-SNAPSHOT]")); + assertThat(holder.get().getMessage(), equalTo("Can't handle join request from a node with a version [1.6.0] that is lower than the minimum compatible version [" + Version.V_2_0_0_beta1.minimumCompatibilityVersion() + "]")); } @Test