Skip to content

Commit 6fb0e0f

Browse files
committed
Log additional information for unstable QuicServerTest.testRebind
Closes #5941
1 parent 44a1003 commit 6fb0e0f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

vertx-core/src/test/java/io/vertx/tests/net/quic/QuicServerTest.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,8 +900,15 @@ public void testRebind() {
900900
};
901901
int num = 4;
902902
for (int i = 0;i < num;i++) {
903-
String id = vertx.deployVerticle(deployable).await();
904-
vertx.undeploy(id).await();
903+
try {
904+
String id = vertx.deployVerticle(deployable).await();
905+
// Undeploying the verticle is expected to close the QuicServer as it is bound to that context, see CleanableQuicServer
906+
vertx.undeploy(id).await();
907+
} catch (Exception e) {
908+
// Show in which iteration it failed.
909+
// If it fails in iteration 0, we know that another test didn't properly clean up.
910+
throw new RuntimeException("failed in iteration " + i, e);
911+
}
905912
}
906913
}
907914

0 commit comments

Comments
 (0)