diff --git a/core/job_manager_test.go b/core/job_manager_test.go index 5ca079a..4300524 100644 --- a/core/job_manager_test.go +++ b/core/job_manager_test.go @@ -452,6 +452,7 @@ func (t *JobManagerTest) Test_RunJobOnce() { require.NotNil(t.T(), t.manager.jobs) go func() { t.runnerFlag <- false }() err := t.manager.RunJobOnce("job") + time.Sleep(200 * time.Millisecond) require.NoError(t.T(), err) assert.True(t.T(), t.ranFlag()) }