Skip to content

Commit c36dea7

Browse files
committed
hm
1 parent 7338767 commit c36dea7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class OpeningHandshakeRejectionTest {
5353

5454
private static final String additionalHandshake = "Upgrade: websocket\r\nConnection: Upgrade\r\n\r\n";
5555

56-
@BeforeEach()
56+
@BeforeEach
5757
public void startServer() {
5858

5959
try {

src/test/java/org/java_websocket/protocols/ProtocolHandshakeRejectionTest.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,13 @@ public class ProtocolHandshakeRejectionTest {
5757

5858
private int port = -1;
5959

60-
@BeforeEach()
61-
public void startServer() throws InterruptedException {
62-
port = SocketUtil.getAvailablePort();
60+
@BeforeEach
61+
public void startServer() {
62+
try {
63+
port = SocketUtil.getAvailablePort();
64+
} catch (InterruptedException e) {
65+
throw new RuntimeException(e);
66+
}
6367
thread = new Thread(
6468
() -> {
6569
try {

0 commit comments

Comments
 (0)