Skip to content

Commit

Permalink
Fix wrong assertion
Browse files Browse the repository at this point in the history
Signed-off-by: starry-shivam <[email protected]>
  • Loading branch information
starry-shivam committed Jun 20, 2024
1 parent ce6624d commit d596095
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/test/kotlin/dev/starry/ktscheduler/KtSchedulerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ class KtSchedulerTest {
nextRunTime = ZonedDateTime.now().plusSeconds(1),
callback = { delay(2000) }
)

val eventListener = TestJobEventListener()

scheduler.addJob(job)
Expand All @@ -312,8 +311,6 @@ class KtSchedulerTest {
scheduler.shutdown()
// Assert that the job was only executed once
assertEquals(1, eventListener.completedJobs.size)
// Assert that the job is rescheduled
assertEquals(scheduler.getJob("longRunningJob")?.nextRunTime, ZonedDateTime.now().plusSeconds(1))
}

private fun createTestJob(
Expand Down

0 comments on commit d596095

Please sign in to comment.