improve fragile tests
Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
parent
9805d16b39
commit
c751a8b1bb
|
@ -457,10 +457,10 @@ 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
|
||||
long start = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());
|
||||
int b = client.getInputStream().read();
|
||||
assertEquals(-1, b);
|
||||
long idle = TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) - start;
|
||||
|
|
Loading…
Reference in New Issue