Skip to content

Commit 1018a59

Browse files
committed
Improve logging in testInferDataType42P18
In case of failure, that does not match expectations, log the failure. Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent f19c380 commit 1018a59

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vertx-pg-client/src/test/java/io/vertx/pgclient/PreparedStatementTestBase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,9 @@ private <T> void testInferDataType42P18(TestContext ctx, Class<T> type, T value,
514514
.flatMap(tx -> conn.preparedQuery("SELECT CONCAT('HELLO ', $1)").execute(Tuple.of(value))
515515
.eventually(() -> conn.close())
516516
.onComplete(ctx.asyncAssertFailure(failure -> {
517-
ctx.assertTrue(hasSqlstateCode(failure, "42P18"));
517+
if (!hasSqlstateCode(failure, "42P18")) {
518+
ctx.fail(failure);
519+
}
518520
})));
519521
}));
520522
}

0 commit comments

Comments
 (0)