We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce68b75 commit 7338767Copy full SHA for 7338767
src/test/java/org/java_websocket/misc/OpeningHandshakeRejectionTest.java
@@ -54,9 +54,13 @@ public class OpeningHandshakeRejectionTest {
54
private static final String additionalHandshake = "Upgrade: websocket\r\nConnection: Upgrade\r\n\r\n";
55
56
@BeforeEach()
57
- public void startServer() throws InterruptedException {
+ public void startServer() {
58
59
- port = SocketUtil.getAvailablePort();
+ try {
60
+ port = SocketUtil.getAvailablePort();
61
+ } catch (InterruptedException e) {
62
+ throw new RuntimeException(e);
63
+ }
64
thread = new Thread(
65
() -> {
66
try {
0 commit comments