Skip to content

Commit

Permalink
Fix flaky SetEventListeners test (#413)
Browse files Browse the repository at this point in the history
Stop should be called after the job has been scheduled.
  • Loading branch information
zhsj authored Jan 30, 2023
1 parent 01aebbb commit ac2a5ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ func TestJob_SetEventListeners(t *testing.T) {
})

s.StartAsync()
s.stop()
wg.Wait()
s.Stop()

require.NoError(t, err)
assert.True(t, jobRanPassed)
Expand Down

0 comments on commit ac2a5ac

Please sign in to comment.