Skip to content

Commit 2b9700d

Browse files
committed
unit test logs exception #497
1 parent 0c4b7d2 commit 2b9700d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • dashjoin-core/src/main/java/org/dashjoin/service

dashjoin-core/src/main/java/org/dashjoin/service/Cron.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ public Map<String, Object> resetSchedule() throws Exception {
4747
// map of job to error / next runtime
4848
Map<String, Object> res = new HashMap<>();
4949

50+
if (!scheduler.isStarted())
51+
// we are in a unit test
52+
return res;
53+
5054
// unschedule all jobs
5155
for (Trigger t : scheduler.getScheduledJobs())
5256
scheduler.unscheduleJob(t.getId());

0 commit comments

Comments
 (0)