8207244: java/nio/channels/Selector/SelectWithConsumer.java testInterruptDuringSelect() fails intermittently
Reviewed-by: alanb
--- a/test/jdk/java/nio/channels/Selector/SelectWithConsumer.java Wed Jul 11 13:55:38 2018 -0400
+++ b/test/jdk/java/nio/channels/Selector/SelectWithConsumer.java Fri Jul 20 08:40:14 2018 +0800
@@ -411,8 +411,6 @@
int n = sel.select(k -> assertTrue(false), 60*1000);
long duration = System.currentTimeMillis() - start;
assertTrue(n == 0);
- assertTrue(duration > 500 && duration < 5000,
- "select took " + duration + " ms");
assertTrue(Thread.currentThread().isInterrupted());
assertTrue(sel.isOpen());
} finally {