diff --git a/integration-cli/registry/registry.go b/integration-cli/registry/registry.go index 800fdd1a31..04864b86cd 100644 --- a/integration-cli/registry/registry.go +++ b/integration-cli/registry/registry.go @@ -138,6 +138,7 @@ func (r *V2) Ping() error { // Close kills the registry server func (r *V2) Close() { r.cmd.Process.Kill() + r.cmd.Process.Wait() os.RemoveAll(r.dir) } diff --git a/integration-cli/trust_server_test.go b/integration-cli/trust_server_test.go index e959429ba1..ced1f43f52 100644 --- a/integration-cli/trust_server_test.go +++ b/integration-cli/trust_server_test.go @@ -186,6 +186,7 @@ func (t *testNotary) Ping() error { func (t *testNotary) Close() { t.cmd.Process.Kill() + t.cmd.Process.Wait() os.RemoveAll(t.dir) }