race in test

This commit is contained in:
John Roesler 2023-11-14 15:09:02 -06:00
parent 10ea8986c7
commit 56373353b1
No known key found for this signature in database
GPG Key ID: 3AA260B9FCA0A6E1
1 changed files with 5 additions and 5 deletions

View File

@ -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(