Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Apr 18, 2024
1 parent 1c38cfd commit 0197829
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ public void testGetChildQueryIdsNegativeTestQueryIsRunning() throws Exception {

statement.unwrap(SnowflakeStatement.class).setParameter("MULTI_STATEMENT_COUNT", 3);
try (ResultSet rs =
statement.unwrap(SnowflakeStatement.class).executeAsyncQuery(multiStmtQuery)) {
statement.unwrap(SnowflakeStatement.class).executeAsyncQuery(multiStmtQuery)) {
queryID = rs.unwrap(SnowflakeResultSet.class).getQueryID();
}
try {
Expand All @@ -1065,10 +1065,13 @@ public void testGetChildQueryIdsNegativeTestQueryIsRunning() throws Exception {
} catch (SQLException ex) {
String msg = ex.getMessage();
if (!msg.contains("Status of query associated with resultSet is")
|| !msg.contains("Results not generated.")) {
|| !msg.contains("Results not generated.")) {
ex.printStackTrace();
QueryStatus qs =
connection.unwrap(SnowflakeConnectionV1.class).getSfSession().getQueryStatus(queryID);
connection
.unwrap(SnowflakeConnectionV1.class)
.getSfSession()
.getQueryStatus(queryID);
fail("Don't get expected message, query Status: " + qs + " actual message is: " + msg);
}
}
Expand Down

0 comments on commit 0197829

Please sign in to comment.