8207244: java/nio/channels/Selector/SelectWithConsumer.java testInterruptDuringSelect() fails intermittently
authormli
Fri, 20 Jul 2018 08:40:14 +0800
changeset 51209 4630bb315ec0
parent 51208 0d2e45b25c3d
child 51210 e750c1a054fa
8207244: java/nio/channels/Selector/SelectWithConsumer.java testInterruptDuringSelect() fails intermittently Reviewed-by: alanb
test/jdk/java/nio/channels/Selector/SelectWithConsumer.java
--- 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 {