Advance mock time for state directory cleanup
The test did not update the MockTime, so the state directory cleaner couldn't run.
Reviewers: Chia-Ping Tsai John Roesler
@@ -565,6 +565,7 @@ public class StateDirectoryTest {
try (final LogCaptureAppender appender = LogCaptureAppender.createAndRegister(StateDirectory.class)) {
final long cleanupDelayMs = 0;
+ time.sleep(5000);
directory.cleanRemovedTasks(cleanupDelayMs);
assertThat(appender.getMessages(), hasItem(endsWith("ms has elapsed (cleanup delay is " + cleanupDelayMs + "ms).")));
}
