8023878: (fs) TEST_BUG java/nio/file/WatchService/SensitivityModifier.java fails intermittently
authoralanb
Tue, 10 Sep 2013 10:42:55 +0100
changeset 19831 8303faa784f3
parent 19830 9c6ba80438f9
child 19832 80fff95a633a
8023878: (fs) TEST_BUG java/nio/file/WatchService/SensitivityModifier.java fails intermittently Reviewed-by: alanb Contributed-by: yiming.wang@oracle.com
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) {