diff --git a/jetty-policy/src/test/java/org/eclipse/jetty/policy/PolicyMonitorTest.java b/jetty-policy/src/test/java/org/eclipse/jetty/policy/PolicyMonitorTest.java index 5d7ae1b935b..ba5c2de8de7 100644 --- a/jetty-policy/src/test/java/org/eclipse/jetty/policy/PolicyMonitorTest.java +++ b/jetty-policy/src/test/java/org/eclipse/jetty/policy/PolicyMonitorTest.java @@ -82,6 +82,8 @@ public class PolicyMonitorTest File permFile =new File(MavenTestingUtils.getTargetDir(), "test-classes/monitor-test-2/global-all-permission.policy"); + // Wait so that time is definitely different + Thread.sleep(10); permFile.setLastModified(System.currentTimeMillis()); monitor.waitForScan();