improve test timing
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
9f2e4fd1f4
commit
daeaad7624
|
@ -446,6 +446,7 @@ public class SelectChannelEndPointTest
|
||||||
_manager.accept(server);
|
_manager.accept(server);
|
||||||
|
|
||||||
// Write client to server
|
// Write client to server
|
||||||
|
long start = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
|
||||||
client.getOutputStream().write("HelloWorld".getBytes(StandardCharsets.UTF_8));
|
client.getOutputStream().write("HelloWorld".getBytes(StandardCharsets.UTF_8));
|
||||||
|
|
||||||
// Verify echo server to client
|
// Verify echo server to client
|
||||||
|
@ -457,7 +458,6 @@ public class SelectChannelEndPointTest
|
||||||
}
|
}
|
||||||
|
|
||||||
Assert.assertTrue(_lastEndPointLatch.await(1, TimeUnit.SECONDS));
|
Assert.assertTrue(_lastEndPointLatch.await(1, TimeUnit.SECONDS));
|
||||||
long start = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
|
|
||||||
_lastEndPoint.setIdleTimeout(idleTimeout);
|
_lastEndPoint.setIdleTimeout(idleTimeout);
|
||||||
|
|
||||||
// read until idle shutdown received
|
// read until idle shutdown received
|
||||||
|
|
Loading…
Reference in New Issue