Skip to content

Commit 5346079

Browse files
committed
Avoid using callbacks that are removed
1 parent f3b9dd4 commit 5346079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/io/vertx/httpproxy/ProxyRequestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ public void testReleaseProxyRequest(TestContext ctx) {
528528
CompletableFuture<Void> full = new CompletableFuture<>();
529529
SocketAddress backend = startHttpBackend(ctx, 8081, req -> {
530530
ctx.assertEquals(null, req.getHeader("header"));
531-
req.body(ctx.asyncAssertSuccess(body -> {
531+
req.body().onComplete(ctx.asyncAssertSuccess(body -> {
532532
req.response().end(body);
533533
}));
534534
});

0 commit comments

Comments
 (0)