From 5bc69884398242f4e4263c21b9ac2441c609a92a Mon Sep 17 00:00:00 2001 From: Benjamin Cane Date: Sat, 27 Mar 2021 09:01:03 -0700 Subject: [PATCH] Fixing silly cyclo rules --- tasks_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks_test.go b/tasks_test.go index 6d9371e..d759601 100644 --- a/tasks_test.go +++ b/tasks_test.go @@ -120,6 +120,11 @@ func TestScheduler(t *testing.T) { t.Errorf("Scheduler failed to execute the scheduled tasks within 15 seconds") } }) +} + +func TestSchedulerDoesntRun(t *testing.T) { + // Create a base scheduler to use + scheduler := New() t.Run("Verify Cancelling a StartAfter works as expected", func(t *testing.T) { // Channel for orchestrating when the task ran @@ -192,6 +197,11 @@ func TestScheduler(t *testing.T) { } } }) +} + +func TestSchedulerExtras(t *testing.T) { + // Create a base scheduler to use + scheduler := New() t.Run("Verify RunOnce works as expected", func(t *testing.T) { // Channel for orchestrating when the task ran