Skip to content

Commit bf228b8

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 a87ace9 commit bf228b8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,9 @@ private <T> void testInferDataType42P18(TestContext ctx, Class<T> type, T value,
552552
.flatMap(tx -> conn.preparedQuery("SELECT CONCAT('HELLO ', $1)").execute(Tuple.of(value))
553553
.eventually(() -> conn.close())
554554
.onComplete(ctx.asyncAssertFailure(failure -> {
555-
ctx.assertTrue(hasSqlstateCode(failure, "42P18"));
555+
if (!hasSqlstateCode(failure, "42P18")) {
556+
ctx.fail(failure);
557+
}
556558
})));
557559
}));
558560
}

0 commit comments

Comments
 (0)