From 56373353b15a02a4b23704f447aafac85ea4860e Mon Sep 17 00:00:00 2001 From: John Roesler Date: Tue, 14 Nov 2023 15:09:02 -0600 Subject: [PATCH] race in test --- scheduler_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scheduler_test.go b/scheduler_test.go index 4173c9de..ac78edf5 100644 --- a/scheduler_test.go +++ b/scheduler_test.go @@ -1062,12 +1062,12 @@ func TestScheduler_WithDistributed(t *testing.T) { schedulersDone := make(chan struct{}, tt.count) for i := tt.count; i > 0; i-- { - go func() { - s, err := newTestScheduler( - tt.opt, - ) - require.NoError(t, err) + s, err := newTestScheduler( + tt.opt, + ) + require.NoError(t, err) + go func() { s.Start() _, err = s.NewJob(