Skip to content

Commit 455d09e

Browse files
committed
Add timeout for test
1 parent 315f555 commit 455d09e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/java_websocket/issues/Issue962Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public Socket createSocket(InetAddress ia, int i, InetAddress ia1, int i1) throw
8585

8686
}
8787

88-
@Test
88+
@Test(timeout = 2000)
8989
public void testIssue() throws IOException, URISyntaxException, InterruptedException {
9090
int port = SocketUtil.getAvailablePort();
9191
WebSocketClient client = new WebSocketClient(new URI("ws://127.0.0.1:" + port)) {
@@ -103,7 +103,7 @@ public void onClose(int code, String reason, boolean remote) {
103103

104104
@Override
105105
public void onError(Exception ex) {
106-
Assert.fail(ex.toString() + " sould not occur");
106+
Assert.fail(ex.toString() + " should not occur");
107107
}
108108
};
109109

0 commit comments

Comments
 (0)