Skip to content

Commit

Permalink
test(cron): test cron.Next(nil)
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia committed Oct 15, 2023
1 parent 8e13e07 commit 3e587f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/cron/schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,8 @@ func TestNextNever(t *testing.T) {
})
}
}

func TestNextNil(t *testing.T) {
t.Parallel()
require.True(t, cron.Next(nil).IsZero())
}

0 comments on commit 3e587f5

Please sign in to comment.