Avoid defunct registry/notary processes during tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
1eafa0f706
commit
09dbce5f5a
2 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,7 @@ func (r *V2) Ping() error {
|
||||||
// Close kills the registry server
|
// Close kills the registry server
|
||||||
func (r *V2) Close() {
|
func (r *V2) Close() {
|
||||||
r.cmd.Process.Kill()
|
r.cmd.Process.Kill()
|
||||||
|
r.cmd.Process.Wait()
|
||||||
os.RemoveAll(r.dir)
|
os.RemoveAll(r.dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -186,6 +186,7 @@ func (t *testNotary) Ping() error {
|
||||||
|
|
||||||
func (t *testNotary) Close() {
|
func (t *testNotary) Close() {
|
||||||
t.cmd.Process.Kill()
|
t.cmd.Process.Kill()
|
||||||
|
t.cmd.Process.Wait()
|
||||||
os.RemoveAll(t.dir)
|
os.RemoveAll(t.dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue