Skip to content
Permalink
Browse files

[misc] correcting test for aurora, since error message change accordi…

…ng to aurora version
  • Loading branch information...
rusher committed Aug 2, 2019
1 parent 21918fd commit 896bcde4f40ca2aa906e62dd72cf9f7f46bf17b0
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/test/java/org/mariadb/jdbc/ErrorMessageTest.java
@@ -359,11 +359,7 @@ public void testSmallMultiBatchErrorMessageNoBulk() {
executeBatchWithException(connection);
fail("Must Have thrown error");
} catch (SQLException sqle) {
if (sharedIsAurora()) {
assertTrue(sqle.getCause().getCause().getMessage().contains(
"INSERT INTO testErrorMessage(test, test2) values (?, ?), "
+ "parameters ['more than 10 characters to provoc error',10]"));
} else {
if (!sharedIsAurora()) {
assertTrue("message : " + sqle.getCause().getCause().getMessage(),
sqle.getCause().getCause().getMessage().contains(
"INSERT INTO testErrorMessage(test, test2) values "

0 comments on commit 896bcde

Please sign in to comment.
You can’t perform that action at this time.