Avoid defunct registry/notary processes during tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Upstream-commit: 09dbce5f5af99509a98827e1a8c34df3a00682eb Component: engine
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user