356428 removed timed waits from test

This commit is contained in:
Greg Wilkins 2011-09-06 13:40:40 +10:00
parent 53327b469d
commit 8e67fd926b
1 changed files with 6 additions and 9 deletions

View File

@ -73,17 +73,14 @@ public class PolicyMonitorTest
monitor.setScanInterval(1);
monitor.start();
while (! monitor.isInitialized() )
{
Thread.sleep(100);
}
monitor.waitForScan();
monitor.waitForScan();
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);
monitor.waitForScan();
permFile.setLastModified(System.currentTimeMillis());
monitor.waitForScan();