Skip to content

Commit 7338767

Browse files
committed
No Exception
1 parent ce68b75 commit 7338767

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/test/java/org/java_websocket/misc/OpeningHandshakeRejectionTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ public class OpeningHandshakeRejectionTest {
5454
private static final String additionalHandshake = "Upgrade: websocket\r\nConnection: Upgrade\r\n\r\n";
5555

5656
@BeforeEach()
57-
public void startServer() throws InterruptedException {
57+
public void startServer() {
5858

59-
port = SocketUtil.getAvailablePort();
59+
try {
60+
port = SocketUtil.getAvailablePort();
61+
} catch (InterruptedException e) {
62+
throw new RuntimeException(e);
63+
}
6064
thread = new Thread(
6165
() -> {
6266
try {

0 commit comments

Comments
 (0)