diff --git a/src/test/java/org/java_websocket/issues/Issue666Test.java b/src/test/java/org/java_websocket/issues/Issue666Test.java index eadd2b36..163dd236 100644 --- a/src/test/java/org/java_websocket/issues/Issue666Test.java +++ b/src/test/java/org/java_websocket/issues/Issue666Test.java @@ -39,6 +39,7 @@ import org.java_websocket.util.ThreadCheck; import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; public class Issue666Test { @@ -141,6 +142,7 @@ public void onStart() { }; server.start(); countServerDownLatch.await(); + assertTrue(SocketUtil.waitForServerToStart(port), "Server Start Status"); Map mapBefore = ThreadCheck.getThreadMap(); client.connectBlocking(); Map mapAfter = ThreadCheck.getThreadMap();