8023878: (fs) TEST_BUG java/nio/file/WatchService/SensitivityModifier.java fails intermittently

Reviewed-by: alanb
This commit is contained in:
Yiming Wang 2013-09-10 10:42:55 +01:00 committed by Alan Bateman
parent d5c45c6cde
commit befcecbd00

View File

@ -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) {