Skip to content

Commit e4cb4cf

Browse files
pendula95vietj
authored andcommitted
Fixed incorrect assertions for SSL connection in TLS test
1 parent 1bb9d04 commit e4cb4cf

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
@@ -125,7 +125,7 @@ public void testSslModeAllowFallback(TestContext ctx) {
125125
.setSslMode(SslMode.ALLOW)
126126
.setSslOptions(new ClientSSLOptions().setTrustAll(true));
127127
PgConnection.connect(vertx, new PgConnectOptions(options)).onComplete(ctx.asyncAssertSuccess(conn -> {
128-
ctx.assertFalse(conn.isSSL());
128+
ctx.assertTrue(conn.isSSL());
129129
async.complete();
130130
}));
131131
}
@@ -149,7 +149,7 @@ public void testSslModePreferFallback(TestContext ctx) {
149149
.setSslMode(SslMode.PREFER)
150150
.setSslOptions(new ClientSSLOptions().setTrustAll(true));
151151
PgConnection.connect(vertx, options).onComplete(ctx.asyncAssertSuccess(conn -> {
152-
ctx.assertTrue(conn.isSSL());
152+
ctx.assertFalse(conn.isSSL());
153153
async.complete();
154154
}));
155155
}

0 commit comments

Comments
 (0)