Adding more leniency on connection fault tests

This commit is contained in:
Joakim Erdfelt 2017-06-05 16:24:53 -07:00
parent 88106fd355
commit 059aa3cbe0
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public class LocalFuzzer implements AutoCloseable
prefix = "Frame[" + i + "]";
WebSocketFrame expected = expect.get(i);
WebSocketFrame actual = framesQueue.poll(1, TimeUnit.SECONDS);
WebSocketFrame actual = framesQueue.poll(3, TimeUnit.SECONDS);
assertThat(prefix + ".poll", actual, notNullValue());
if (LOG.isDebugEnabled())

View File

@ -295,7 +295,7 @@ public class WebSocketCloseTest
);
BlockingQueue<WebSocketFrame> framesQueue = session.getOutputFrames();
WebSocketFrame frame = framesQueue.poll(1, TimeUnit.SECONDS);
WebSocketFrame frame = framesQueue.poll(3, TimeUnit.SECONDS);
assertThat("Frame.opCode", frame.getOpCode(), is(OpCode.TEXT));
assertThat("Frame.text-payload", frame.getPayloadAsUTF8(), containsString("openSessions.size=1\n"));
}