Skip to content

Commit 5cf597a

Browse files
committed
Missing async in a test
1 parent 356b81f commit 5cf597a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ private Future<Void> waitUntilConnCountIs(SqlConnection conn, int remaining, int
104104
public void testPartialClose(TestContext ctx) {
105105
int maxSize = 8;
106106
int instances = maxSize * 4;
107+
Async async = ctx.async();
107108
vertx.deployVerticle(new AbstractVerticle() {
108109
@Override
109110
public void start() {
@@ -127,6 +128,7 @@ public void start(Promise<Void> startPromise) {
127128
.onComplete(ctx.asyncAssertSuccess(res2 -> {
128129
int num2 = res1.iterator().next().getInteger(0);
129130
ctx.assertEquals(num1, num2);
131+
async.complete();
130132
}));
131133
}));
132134
}));

0 commit comments

Comments
 (0)