Skip to content

Commit

Permalink
Adding more leniency on connection fault tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed Jun 26, 2017
1 parent 8dbe179 commit ccf35e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void assertExpected(BlockingQueue<WebSocketFrame> framesQueue, List<WebSo
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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public void testOpenSessionCleanup() throws Exception
);

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"));
}
Expand Down

0 comments on commit ccf35e6

Please sign in to comment.