increased test idletimeout
This commit is contained in:
parent
1d968ef53a
commit
84efe1e438
|
@ -268,7 +268,7 @@ public class ByteArrayEndPointTest
|
||||||
@Test
|
@Test
|
||||||
public void testIdle() throws Exception
|
public void testIdle() throws Exception
|
||||||
{
|
{
|
||||||
long idleTimeout = 500;
|
long idleTimeout = 1500;
|
||||||
ByteArrayEndPoint endp = new ByteArrayEndPoint(_scheduler, idleTimeout);
|
ByteArrayEndPoint endp = new ByteArrayEndPoint(_scheduler, idleTimeout);
|
||||||
endp.addInput("test");
|
endp.addInput("test");
|
||||||
endp.setGrowOutput(false);
|
endp.setGrowOutput(false);
|
||||||
|
@ -284,7 +284,7 @@ public class ByteArrayEndPointTest
|
||||||
FutureCallback fcb = new FutureCallback();
|
FutureCallback fcb = new FutureCallback();
|
||||||
|
|
||||||
endp.fillInterested(fcb);
|
endp.fillInterested(fcb);
|
||||||
fcb.get(100,TimeUnit.MILLISECONDS);
|
fcb.get(idleTimeout,TimeUnit.MILLISECONDS);
|
||||||
assertTrue(fcb.isDone());
|
assertTrue(fcb.isDone());
|
||||||
assertEquals(null, fcb.get());
|
assertEquals(null, fcb.get());
|
||||||
assertEquals(4, endp.fill(buffer));
|
assertEquals(4, endp.fill(buffer));
|
||||||
|
|
Loading…
Reference in New Issue