Skip to content

Commit 92d0591

Browse files
committed
Missing async in a test
1 parent 700eee6 commit 92d0591

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public void testCloseAutomatically(TestContext ctx) {
6969
int instances = maxSize * 4;
7070
Async latch = ctx.async(instances);
7171
AtomicReference<String> deployment = new AtomicReference<>();
72+
Async async = ctx.async();
7273
vertx.deployVerticle(() -> new AbstractVerticle() {
7374
@Override
7475
public void start() {
@@ -82,7 +83,7 @@ public void start() {
8283
vertx.undeploy(deployment.get())
8384
.compose(v -> PgConnection.connect(vertx, options))
8485
.compose(conn -> waitUntilConnCountIs(conn, 10, 1)
85-
).onComplete(ctx.asyncAssertSuccess());
86+
).onComplete(ctx.asyncAssertSuccess(v -> async.complete()));
8687
}
8788

8889
private Future<Void> waitUntilConnCountIs(SqlConnection conn, int remaining, int expectedCount) {

0 commit comments

Comments
 (0)