From 3e587f5c0848159e3508ae7ee00b890a62ba250a Mon Sep 17 00:00:00 2001 From: favonia Date: Sun, 15 Oct 2023 09:25:41 -0500 Subject: [PATCH] test(cron): test cron.Next(nil) --- internal/cron/schedule_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/cron/schedule_test.go b/internal/cron/schedule_test.go index 3e100813..2cc691f0 100644 --- a/internal/cron/schedule_test.go +++ b/internal/cron/schedule_test.go @@ -69,3 +69,8 @@ func TestNextNever(t *testing.T) { }) } } + +func TestNextNil(t *testing.T) { + t.Parallel() + require.True(t, cron.Next(nil).IsZero()) +}