WebSocket - quick fix to prevent jenkins test hang
This commit is contained in:
parent
5500f161d7
commit
d3d4f7abed
|
@ -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
|
||||
|
|
|
@ -243,7 +243,7 @@ public class EchoTest
|
|||
System.err.println(testcase);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout=1000)
|
||||
public void testEcho() throws Exception
|
||||
{
|
||||
EchoClientSocket socket = new EchoClientSocket();
|
||||
|
|
Loading…
Reference in New Issue