changeset 51892:4630bb315ec0

8207244: java/nio/channels/Selector/SelectWithConsumer.java testInterruptDuringSelect() fails intermittently Reviewed-by: alanb
author mli
date Fri, 20 Jul 2018 08:40:14 +0800
parents 0d2e45b25c3d
children e750c1a054fa
files test/jdk/java/nio/channels/Selector/SelectWithConsumer.java
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 {