Skip to content

Commit

Permalink
Decrease poll delay
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanaa committed Jan 11, 2024
1 parent c454984 commit 811c2f0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void testSchedule() throws SchedulerException {
assertEquals(1, schedulerListener.getJobsAddedCount());
assertEquals(1, schedulerListener.getJobsScheduledCount());

await().pollDelay(3, TimeUnit.SECONDS).timeout(90, TimeUnit.SECONDS).untilAsserted(
await().pollDelay(1, TimeUnit.SECONDS).timeout(90, TimeUnit.SECONDS).untilAsserted(
() -> assertEquals(1, jobListener.getJobsExecutedCount()));
}

Expand Down Expand Up @@ -135,7 +135,7 @@ void testScheduleJobWithMultipleTriggers() throws SchedulerException {
assertEquals(1, schedulerListener.getJobsAddedCount());
assertEquals(jobTriggersCount, schedulerListener.getJobsScheduledCount());

await().pollDelay(3, TimeUnit.SECONDS).timeout(90, TimeUnit.SECONDS).untilAsserted(
await().pollDelay(1, TimeUnit.SECONDS).timeout(90, TimeUnit.SECONDS).untilAsserted(
() -> assertEquals(jobTriggersCount, jobListener.getJobsExecutedCount()));
}

Expand Down

0 comments on commit 811c2f0

Please sign in to comment.