< prev index next >

test/jdk/java/nio/channels/Selector/SelectWithConsumer.java

Print this page

        

*** 409,420 **** scheduleInterrupt(Thread.currentThread(), 1, SECONDS); long start = System.currentTimeMillis(); 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 { Thread.currentThread().interrupted(); // clear interrupt status } --- 409,418 ----
< prev index next >