fix testEnsureVersionCompatibility for 5.5.0 release
This commit is contained in:
parent
1d2a10bad8
commit
efb29031f1
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue