# HG changeset patch # User alanb # Date 1378806175 -3600 # Node ID 8303faa784f39508204f8220271db18e1093cc2e # Parent 9c6ba80438f9ac95e3e45ae436f3957bdaf40b19 8023878: (fs) TEST_BUG java/nio/file/WatchService/SensitivityModifier.java fails intermittently Reviewed-by: alanb Contributed-by: yiming.wang@oracle.com diff -r 9c6ba80438f9 -r 8303faa784f3 jdk/test/java/nio/file/WatchService/SensitivityModifier.java --- a/jdk/test/java/nio/file/WatchService/SensitivityModifier.java Mon Sep 09 19:07:05 2013 -0700 +++ b/jdk/test/java/nio/file/WatchService/SensitivityModifier.java Tue Sep 10 10:42:55 2013 +0100 @@ -100,7 +100,7 @@ } key.reset(); key = watcher.poll(1, TimeUnit.SECONDS); - } while (key != null && !eventReceived); + } while (key != null); // we should have received at least one ENTRY_MODIFY event if (eventReceived) {