diff --git a/.github/workflows/file_formatting.yml b/.github/workflows/file_formatting.yml index 8b24354..448affe 100644 --- a/.github/workflows/file_formatting.yml +++ b/.github/workflows/file_formatting.yml @@ -16,4 +16,4 @@ jobs: uses: actions/checkout@v4 - name: verify example_test.go run: | - grep "^func " example_test.go | sort -C + grep "^func " example_test.go | sort -c diff --git a/example_test.go b/example_test.go index 1386f68..a704c39 100644 --- a/example_test.go +++ b/example_test.go @@ -401,6 +401,11 @@ func ExampleScheduler_removeJob() { // 0 } +func ExampleScheduler_shutdown() { + s, _ := NewScheduler() + defer func() { _ = s.Shutdown() }() +} + func ExampleScheduler_start() { s, _ := NewScheduler() defer func() { _ = s.Shutdown() }() @@ -437,11 +442,6 @@ func ExampleScheduler_stopJobs() { _ = s.StopJobs() } -func ExampleScheduler_shutdown() { - s, _ := NewScheduler() - defer func() { _ = s.Shutdown() }() -} - func ExampleScheduler_update() { s, _ := NewScheduler() defer func() { _ = s.Shutdown() }()