InvisibleProgrammer commented on code in PR #6412:
URL: https://github.com/apache/hive/pull/6412#discussion_r3043609786
##########
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcDriver2.java:
##########
@@ -2662,6 +2690,10 @@ public void testQueryTimeout() throws Exception {
fail("Expecting SQLTimeoutException");
} catch (SQLTimeoutException e) {
assertNotNull(e);
+ assertTrue("Message should reflect JDBC query timeout (1s): " +
e.getMessage(),
+ isQueryTimedOutAfterOneSecondMessage(e.getMessage()));
+ assertFalse("Message should not claim 0 seconds: " + e.getMessage(),
Review Comment:
Considering the previous assertion, is that assertion possible at all?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]