diff --git a/pkg/receiver/jobreceiver/command/command_test.go b/pkg/receiver/jobreceiver/command/command_test.go index d981a6fba2..e67f84321a 100644 --- a/pkg/receiver/jobreceiver/command/command_test.go +++ b/pkg/receiver/jobreceiver/command/command_test.go @@ -87,6 +87,7 @@ func TestExecute(t *testing.T) { outC := eventualOutput(t, echo) _, err := echo.Run() require.NoError(t, err) + time.Sleep(time.Millisecond * 100) _, err = echo.Run() assert.Error(t, err) assert.Contains(t, <-outC, "hello world")