WebSocket - quick fix to prevent jenkins test hang

This commit is contained in:
Joakim Erdfelt 2013-08-08 09:46:31 -07:00
parent 5500f161d7
commit d3d4f7abed
2 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,11 @@ public class EchoClientSocket extends TrackingSocket
@OnError
public void onError(Throwable t)
{
addError(t);
if(t == null) {
addError(new NullPointerException("Throwable should not be null"));
} else {
addError(t);
}
}
@OnOpen

View File

@ -243,7 +243,7 @@ public class EchoTest
System.err.println(testcase);
}
@Test
@Test(timeout=1000)
public void testEcho() throws Exception
{
EchoClientSocket socket = new EchoClientSocket();