[TEST] Assert against minCompatVersion instead of a static string

This commit is contained in:
Simon Willnauer 2015-07-09 21:46:32 +02:00
parent 59d6e59dec
commit 0ea9adb284
1 changed files with 1 additions and 1 deletions

View File

@ -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