From 31dd84b67b3b55bfb25a78a819d1e7de9ec847da Mon Sep 17 00:00:00 2001 From: Scott Gress Date: Wed, 18 Dec 2024 13:42:36 -0600 Subject: [PATCH] allow test to recover from panic --- server/service/schedule/schedule_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/service/schedule/schedule_test.go b/server/service/schedule/schedule_test.go index 152ee88dbf7c..2e74bf0cbaa8 100644 --- a/server/service/schedule/schedule_test.go +++ b/server/service/schedule/schedule_test.go @@ -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)