1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #30151 from tonistiigi/fix-defunct

Avoid defunct registry/notary processes during tests
This commit is contained in:
Vincent Demeester 2017-01-16 08:55:16 +01:00 committed by GitHub
commit ead8ce2431
2 changed files with 2 additions and 0 deletions

View file

@ -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)
}

View file

@ -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)
}