Skip to content

Commit

Permalink
fixup! Create JobKitWatchdog, clean SpoolerTest and BackgroundService…
Browse files Browse the repository at this point in the history
…EventTest #140
  • Loading branch information
hdsdi3g committed Jul 3, 2023
1 parent c6704da commit 7fb6238
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ void completeCycle_onChangeEnabled() throws InterruptedException {
verify(event, atLeast(1)).onChangeTimedInterval(name, spoolName, interval);
verify(event, atLeast(1)).scheduleNextBackgroundServiceTask(
eq(name), eq(spoolName), eq(0), longThat(m -> m >= interval));
verify(event, atMost(1)).nextBackgroundServiceTask(name, spoolName, 0);

verify(jobKitWatchdog, atLeast(1))
.refreshBackgroundService(eq(name), eq(spoolName), any(boolean.class), longThat(m -> m >= interval));
Expand All @@ -263,6 +264,7 @@ void completeCycle_onChangeRetryAfterTimeFactor() throws InterruptedException {
verify(event, times(2)).onChangeRetryAfterTimeFactor(eq(name), eq(spoolName), any(double.class));
verify(event, times(2)).onChangeEnabled(eq(name), eq(spoolName), any(boolean.class));
verify(event, atLeast(1)).onChangeTimedInterval(name, spoolName, interval);
verify(event, atMost(1)).nextBackgroundServiceTask(name, spoolName, 0);
verify(event, atLeast(1)).scheduleNextBackgroundServiceTask(
eq(name), eq(spoolName), eq(0), longThat(m -> m >= interval));

Expand Down

0 comments on commit 7fb6238

Please sign in to comment.