added pause to make sure modified time on file changes

This commit is contained in:
Greg Wilkins 2011-08-29 10:45:32 +10:00
parent 79fb254151
commit cd5c73366e
1 changed files with 2 additions and 0 deletions

View File

@ -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();