fix cron bug

This commit is contained in:
Looly
2020-04-19 11:41:10 +08:00
parent f4fc97f9de
commit 8e42898d46
4 changed files with 84 additions and 20 deletions

View File

@@ -36,13 +36,14 @@ public class CronTest {
}
@Test
@Ignore
// @Ignore
public void cronTest2() {
// 支持秒级别定时任务
CronUtil.setMatchSecond(true);
CronUtil.start();
ThreadUtil.sleep(30000);
ThreadUtil.waitForDie();
Console.log("Exit.");
}
@Test