Skip to content

Commit

Permalink
Merge pull request #4 from madflojo/gocyclo
Browse files Browse the repository at this point in the history
Fixing silly cyclo rules
  • Loading branch information
madflojo committed Mar 27, 2021
2 parents f747c0d + 5bc6988 commit 97ae21e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks_test.go
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 97ae21e

Please sign in to comment.