Skip to content

Commit 0be1df0

Browse files
pendula95vietj
authored andcommitted
Fixed incorrect assertions for SSL connection in TLS test
1 parent c231330 commit 0be1df0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void testSslModeAllowFallback(TestContext ctx) {
123123
.setSslMode(SslMode.ALLOW)
124124
.setTrustAll(true);
125125
PgConnection.connect(vertx, new PgConnectOptions(options)).onComplete(ctx.asyncAssertSuccess(conn -> {
126-
ctx.assertFalse(conn.isSSL());
126+
ctx.assertTrue(conn.isSSL());
127127
async.complete();
128128
}));
129129
}
@@ -147,7 +147,7 @@ public void testSslModePreferFallback(TestContext ctx) {
147147
.setSslMode(SslMode.PREFER)
148148
.setTrustAll(true);
149149
PgConnection.connect(vertx, options).onComplete(ctx.asyncAssertSuccess(conn -> {
150-
ctx.assertTrue(conn.isSSL());
150+
ctx.assertFalse(conn.isSSL());
151151
async.complete();
152152
}));
153153
}

0 commit comments

Comments
 (0)