mirror of https://github.com/go-co-op/gocron.git
fix example sorting
This commit is contained in:
parent
7ee4c50f57
commit
848adb4508
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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() }()
|
||||
|
|
|
|||
Loading…
Reference in New Issue