Skip to content

Commit 8624e35

Browse files
committed
Added timeout to Issue941Test
1 parent 51c1745 commit 8624e35

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/test/java/org/java_websocket/issues/Issue941Test.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
packageorg.java_websocket.issues;
2727

28-
importstaticorg.junit.Assert.assertArrayEquals;
29-
3028
importjava.net.InetSocketAddress;
3129
importjava.net.URI;
3230
importjava.nio.ByteBuffer;
@@ -39,6 +37,7 @@
3937
importorg.java_websocket.handshake.ServerHandshake;
4038
importorg.java_websocket.server.WebSocketServer;
4139
importorg.java_websocket.util.SocketUtil;
40+
importstaticorg.junit.Assert.assertArrayEquals;
4241
importorg.junit.Test;
4342

4443
publicclassIssue941Test{
@@ -47,7 +46,7 @@ public class Issue941Test{
4746
privateCountDownLatchpongLatch = newCountDownLatch(1);
4847
privatebyte[] pingBuffer, receivedPingBuffer, pongBuffer;
4948

50-
@Test
49+
@Test(timeout = 10000)
5150
publicvoidtestIssue() throwsException{
5251
intport = SocketUtil.getAvailablePort();
5352
WebSocketClientclient = newWebSocketClient(newURI("ws://localhost:" + port)){

0 commit comments

Comments
(0)