File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/test/java/org/java_websocket Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ public class OpeningHandshakeRejectionTest {
52
52
53
53
private static final String additionalHandshake = "Upgrade: websocket\r \n Connection: Upgrade\r \n \r \n " ;
54
54
55
- @ BeforeEach
56
55
public void startServer () throws InterruptedException {
57
56
this .port = SocketUtil .getAvailablePort ();
58
57
this .thread = new Thread (
@@ -221,6 +220,7 @@ public void testHandshakeRejectionTestCase11() throws Exception {
221
220
testHandshakeRejection (11 );
222
221
}
223
222
private void testHandshakeRejection (int i ) throws Exception {
223
+ startServer ();
224
224
this .serverStartCountDownLatch .await ();
225
225
final int finalI = i ;
226
226
final CountDownLatch countDownLatch = new CountDownLatch (1 );
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ public class ProtocolHandshakeRejectionTest {
58
58
59
59
private int port = -1 ;
60
60
61
- @ BeforeEach
62
61
public void startServer () throws InterruptedException {
63
62
port = SocketUtil .getAvailablePort ();
64
63
thread = new Thread (
@@ -491,6 +490,7 @@ public void testHandshakeRejectionTestCase29() throws Exception {
491
490
}
492
491
493
492
private void testProtocolRejection (int i , Draft_6455 draft ) throws Exception {
493
+ startServer ();
494
494
serverStartCountDownLatch .await ();
495
495
final int finalI = i ;
496
496
final CountDownLatch countDownLatch = new CountDownLatch (1 );
You can’t perform that action at this time.
0 commit comments