From 6639489ce962118a851457e9212eeaf818d3ade2 Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Wed, 11 Sep 2019 15:22:33 -0700 Subject: [PATCH] Add sleep between Terminate and Kill --- test/integration/helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/helpers.go b/test/integration/helpers.go index 47af15a269..8c1832e47c 100644 --- a/test/integration/helpers.go +++ b/test/integration/helpers.go @@ -345,6 +345,8 @@ func killProcessFamily(t *testing.T, pid int) { t.Logf("unable to terminate pid %d: %v", p.Pid, err) continue } + // Allow process a chance to cleanup before instant death. + time.Sleep(100 * time.Millisecond) if err := p.Kill(); err != nil { t.Logf("unable to kill pid %d: %v", p.Pid, err) continue