From 059aa3cbe0b46cd669a8b2429e6e9366d524ea79 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 5 Jun 2017 16:24:53 -0700 Subject: [PATCH] Adding more leniency on connection fault tests --- .../java/org/eclipse/jetty/websocket/tests/LocalFuzzer.java | 2 +- .../jetty/websocket/tests/server/WebSocketCloseTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-websocket/websocket-tests/src/main/java/org/eclipse/jetty/websocket/tests/LocalFuzzer.java b/jetty-websocket/websocket-tests/src/main/java/org/eclipse/jetty/websocket/tests/LocalFuzzer.java index 1f277381306..0c8560008e6 100644 --- a/jetty-websocket/websocket-tests/src/main/java/org/eclipse/jetty/websocket/tests/LocalFuzzer.java +++ b/jetty-websocket/websocket-tests/src/main/java/org/eclipse/jetty/websocket/tests/LocalFuzzer.java @@ -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()) diff --git a/jetty-websocket/websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/server/WebSocketCloseTest.java b/jetty-websocket/websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/server/WebSocketCloseTest.java index f11b0117d2c..f14ab1da8de 100644 --- a/jetty-websocket/websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/server/WebSocketCloseTest.java +++ b/jetty-websocket/websocket-tests/src/test/java/org/eclipse/jetty/websocket/tests/server/WebSocketCloseTest.java @@ -295,7 +295,7 @@ public class WebSocketCloseTest ); BlockingQueue 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")); }