[TEST] Assert against minCompatVersion instead of a static string
This commit is contained in:
parent
59d6e59dec
commit
0ea9adb284
|
@ -242,7 +242,7 @@ public class ZenDiscoveryTests extends ElasticsearchIntegrationTest {
|
||||||
});
|
});
|
||||||
|
|
||||||
assertThat(holder.get(), notNullValue());
|
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
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue