From befcecbd0048c3fcce64bdc2fe70ecc011138ee0 Mon Sep 17 00:00:00 2001 From: Yiming Wang Date: Tue, 10 Sep 2013 10:42:55 +0100 Subject: [PATCH] 8023878: (fs) TEST_BUG java/nio/file/WatchService/SensitivityModifier.java fails intermittently Reviewed-by: alanb --- jdk/test/java/nio/file/WatchService/SensitivityModifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/test/java/nio/file/WatchService/SensitivityModifier.java b/jdk/test/java/nio/file/WatchService/SensitivityModifier.java index 08722048b63..185c4caf8b5 100644 --- a/jdk/test/java/nio/file/WatchService/SensitivityModifier.java +++ b/jdk/test/java/nio/file/WatchService/SensitivityModifier.java @@ -100,7 +100,7 @@ public class SensitivityModifier { } 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) {