File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
vertx-core/src/test/java/io/vertx/tests/net/quic Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments