Skip to content

Commit

Permalink
allow test to recover from panic
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Dec 18, 2024
1 parent 72f845f commit 31dd84b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/service/schedule/schedule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func TestMultipleSchedules(t *testing.T) {
}

func TestMultipleJobsInOrder(t *testing.T) {
os.Setenv("TEST_CRON_NO_RECOVER", "0")
defer os.Unsetenv("TEST_CRON_NO_RECOVER")

ctx, cancel := context.WithCancel(context.Background())

jobs := make(chan int)
Expand Down

0 comments on commit 31dd84b

Please sign in to comment.