changeset 8032:909aced59bef

8023878: (fs) TEST_BUG java/nio/file/WatchService/SensitivityModifier.java fails intermittently Reviewed-by: alanb Contributed-by: yiming.wang@oracle.com
author alanb
date Tue, 10 Sep 2013 10:42:55 +0100
parents f80b8af9c218
children c9083205e6eb
files test/java/nio/file/WatchService/SensitivityModifier.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/nio/file/WatchService/SensitivityModifier.java	Mon Sep 09 19:07:05 2013 -0700
+++ b/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) {