fix testEnsureVersionCompatibility for 5.5.0 release

This commit is contained in:
Boaz Leskes 2017-07-07 18:29:01 +02:00
parent 1d2a10bad8
commit efb29031f1
1 changed files with 3 additions and 3 deletions

View File

@ -158,16 +158,16 @@ public class TCPTransportTests extends ESTestCase {
TcpTransport.ensureVersionCompatibility(Version.fromString("5.0.0"), Version.fromString("6.0.0"), true); TcpTransport.ensureVersionCompatibility(Version.fromString("5.0.0"), Version.fromString("6.0.0"), true);
IllegalStateException ise = expectThrows(IllegalStateException.class, () -> IllegalStateException ise = expectThrows(IllegalStateException.class, () ->
TcpTransport.ensureVersionCompatibility(Version.fromString("5.0.0"), Version.fromString("6.0.0"), false)); TcpTransport.ensureVersionCompatibility(Version.fromString("5.0.0"), Version.fromString("6.0.0"), false));
assertEquals("Received message from unsupported version: [5.0.0] minimal compatible version is: [5.4.0]", ise.getMessage()); assertEquals("Received message from unsupported version: [5.0.0] minimal compatible version is: [5.5.0]", ise.getMessage());
ise = expectThrows(IllegalStateException.class, () -> ise = expectThrows(IllegalStateException.class, () ->
TcpTransport.ensureVersionCompatibility(Version.fromString("2.3.0"), Version.fromString("6.0.0"), true)); TcpTransport.ensureVersionCompatibility(Version.fromString("2.3.0"), Version.fromString("6.0.0"), true));
assertEquals("Received handshake message from unsupported version: [2.3.0] minimal compatible version is: [5.4.0]", assertEquals("Received handshake message from unsupported version: [2.3.0] minimal compatible version is: [5.5.0]",
ise.getMessage()); ise.getMessage());
ise = expectThrows(IllegalStateException.class, () -> ise = expectThrows(IllegalStateException.class, () ->
TcpTransport.ensureVersionCompatibility(Version.fromString("2.3.0"), Version.fromString("6.0.0"), false)); TcpTransport.ensureVersionCompatibility(Version.fromString("2.3.0"), Version.fromString("6.0.0"), false));
assertEquals("Received message from unsupported version: [2.3.0] minimal compatible version is: [5.4.0]", assertEquals("Received message from unsupported version: [2.3.0] minimal compatible version is: [5.5.0]",
ise.getMessage()); ise.getMessage());
} }