ptupitsyn commented on code in PR #7854:
URL: https://github.com/apache/ignite-3/pull/7854#discussion_r3009720488


##########
modules/client/src/integrationTest/java/org/apache/ignite/internal/client/ItThinClientConnectionTest.java:
##########
@@ -126,17 +129,14 @@ void testHeartbeat() {
     @Test
     void testExceptionHasHint() {
         // Execute on all nodes to collect all types of exception.
-        List<String> causes = IntStream.range(0, 
client().configuration().addresses().length)
+        List<IgniteException> causes = IntStream.range(0, 
client().configuration().addresses().length)
                 .mapToObj(i -> {
-                    IgniteException ex = assertThrows(IgniteException.class, 
() -> client().sql().execute("select x from bad"));
-
-                    return 
ex.getCause().getCause().getCause().getCause().getMessage();
+                    return assertThrows(IgniteException.class, () -> 
client().sql().execute("select x from bad"));
                 })
                 .collect(Collectors.toList());
 
         assertThat(causes,
-                hasItem(containsString("To see the full stack trace, "
-                        + "set 
clientConnector.sendServerExceptionStackTraceToClient:true on the server")));
+                hasItem(publicExceptionWithHint(SqlException.class, 
Sql.STMT_VALIDATION_ERR, "Object 'BAD' not found")));

Review Comment:
   I see, that's ok!



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