diff --git a/containers/docker_test.go b/containers/docker_test.go index ed32330..38f985c 100644 --- a/containers/docker_test.go +++ b/containers/docker_test.go @@ -2,6 +2,7 @@ package containers import ( "testing" + "time" "github.com/stretchr/testify/assert" ) @@ -22,6 +23,8 @@ func TestGetProcesses(t *testing.T) { err = driver.Start("test") assert.Nil(t, err) + time.Sleep(5 * time.Second) + processes, err := driver.GetProcesses("test") assert.Nil(t, err) assert.Contains(t, processes, "sleep 3600")