From 6fb0e0f0af6fb87ab169c9815dd4aa3a78751563 Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Fri, 6 Feb 2026 11:53:00 +0100 Subject: [PATCH] Log additional information for unstable QuicServerTest.testRebind Closes #5941 --- .../java/io/vertx/tests/net/quic/QuicServerTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vertx-core/src/test/java/io/vertx/tests/net/quic/QuicServerTest.java b/vertx-core/src/test/java/io/vertx/tests/net/quic/QuicServerTest.java index 2c970a4240a..d3a59f498b4 100644 --- a/vertx-core/src/test/java/io/vertx/tests/net/quic/QuicServerTest.java +++ b/vertx-core/src/test/java/io/vertx/tests/net/quic/QuicServerTest.java @@ -900,8 +900,15 @@ public void testRebind() { }; int num = 4; for (int i = 0;i < num;i++) { - String id = vertx.deployVerticle(deployable).await(); - vertx.undeploy(id).await(); + try { + String id = vertx.deployVerticle(deployable).await(); + // Undeploying the verticle is expected to close the QuicServer as it is bound to that context, see CleanableQuicServer + vertx.undeploy(id).await(); + } catch (Exception e) { + // Show in which iteration it failed. + // If it fails in iteration 0, we know that another test didn't properly clean up. + throw new RuntimeException("failed in iteration " + i, e); + } } }