From 6205224f5168042f99fff1bb5072828c0f21e69a Mon Sep 17 00:00:00 2001 From: Julien Viet Date: Wed, 19 Jul 2023 15:31:09 +0200 Subject: [PATCH] Update to executeBlocking changes --- src/test/java/io/vertx/junit5/VertxExtensionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/vertx/junit5/VertxExtensionTest.java b/src/test/java/io/vertx/junit5/VertxExtensionTest.java index 3255d05..5c10d5b 100644 --- a/src/test/java/io/vertx/junit5/VertxExtensionTest.java +++ b/src/test/java/io/vertx/junit5/VertxExtensionTest.java @@ -190,13 +190,13 @@ class FailureWithIntermediateAsyncVerifierTest { @Test @Tag("programmatic") void thisMustAlsoFail(Vertx vertx, VertxTestContext testContext) { - vertx.executeBlocking(f -> { + vertx.executeBlocking(() -> { try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } - f.complete(69); + return 69; }).onComplete(testContext.succeeding(i -> testContext.verify(() -> assertEquals(58, i)))); } }