improve test timing

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2018-03-06 19:03:46 +11:00
parent 9f2e4fd1f4
commit daeaad7624
1 changed files with 1 additions and 1 deletions

View File

@ -446,6 +446,7 @@ public class SelectChannelEndPointTest
_manager.accept(server);
// Write client to server
long start = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
client.getOutputStream().write("HelloWorld".getBytes(StandardCharsets.UTF_8));
// Verify echo server to client
@ -457,7 +458,6 @@ public class SelectChannelEndPointTest
}
Assert.assertTrue(_lastEndPointLatch.await(1, TimeUnit.SECONDS));
long start = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
_lastEndPoint.setIdleTimeout(idleTimeout);
// read until idle shutdown received