sk0x50 commented on code in PR #904:
URL: https://github.com/apache/ignite-3/pull/904#discussion_r909755901


##########
modules/client-common/src/test/java/org/apache/ignite/internal/client/proto/ClientMessageDecoderTest.java:
##########
@@ -51,8 +51,8 @@ void testInvalidMagicThrowsException() {
 
         var t = assertThrows(IgniteException.class, () -> decode(buf));
 
-        assertEquals("Invalid magic header in thin client connection. Expected 
'IGNI', but was 'BEEF'.",
-                t.getMessage());
+        String expected = "Invalid magic header in thin client connection. 
Expected 'IGNI', but was 'BEEF'.";
+        assertTrue(t.getMessage().contains(expected), "Expected: " + expected 
+ ", actual: " + t.getMessage());

Review Comment:
   for some reasons `harmcrest` library is not included to dependencies for 
this module. I will add it and check.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to