We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01e00da commit e11a95cCopy full SHA for e11a95c
1 file changed
vertx-core/src/test/java/io/vertx/tests/net/quic/QuicServerTest.java
@@ -900,8 +900,15 @@ public void testRebind() {
900
};
901
int num = 4;
902
for (int i = 0;i < num;i++) {
903
- String id = vertx.deployVerticle(deployable).await();
904
- vertx.undeploy(id).await();
+ try {
+ 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
+ }
912
}
913
914
0 commit comments