From 84efe1e43869a64c9e22e2be537037045ebec552 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 5 Aug 2016 14:11:30 +1000 Subject: [PATCH] increased test idletimeout --- .../test/java/org/eclipse/jetty/io/ByteArrayEndPointTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-io/src/test/java/org/eclipse/jetty/io/ByteArrayEndPointTest.java b/jetty-io/src/test/java/org/eclipse/jetty/io/ByteArrayEndPointTest.java index 2a49e8b351f..d7321f1a38d 100644 --- a/jetty-io/src/test/java/org/eclipse/jetty/io/ByteArrayEndPointTest.java +++ b/jetty-io/src/test/java/org/eclipse/jetty/io/ByteArrayEndPointTest.java @@ -268,7 +268,7 @@ public class ByteArrayEndPointTest @Test public void testIdle() throws Exception { - long idleTimeout = 500; + long idleTimeout = 1500; ByteArrayEndPoint endp = new ByteArrayEndPoint(_scheduler, idleTimeout); endp.addInput("test"); endp.setGrowOutput(false); @@ -284,7 +284,7 @@ public class ByteArrayEndPointTest FutureCallback fcb = new FutureCallback(); endp.fillInterested(fcb); - fcb.get(100,TimeUnit.MILLISECONDS); + fcb.get(idleTimeout,TimeUnit.MILLISECONDS); assertTrue(fcb.isDone()); assertEquals(null, fcb.get()); assertEquals(4, endp.fill(buffer));