Skip to content

Commit

Permalink
DBZ-7616 Simplify Oracle tests assertion on SQLTimeoutException
Browse files Browse the repository at this point in the history
  • Loading branch information
mfvitale committed Apr 16, 2024
1 parent a2cdefb commit 870b183
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -49,10 +49,7 @@ public void whenQueryTakesMoreThenConfiguredQueryTimeoutAnExceptionMustBeThrown(
assertThatThrownBy(() -> conn.execute("begin\n" +
" dbms_lock.sleep(10);\n" +
"end;"))
.isInstanceOf(SQLTimeoutException.class)
.hasMessage("ORA-01013: user requested cancel of current operation\n" +
"ORA-06512: at \"SYS.DBMS_LOCK\", line 215\n" +
"ORA-06512: at line 2\n");
.isInstanceOf(SQLTimeoutException.class);
}
}
}

0 comments on commit 870b183

Please sign in to comment.