Skip to content

Commit

Permalink
test: safe to stop registry container
Browse files Browse the repository at this point in the history
Signed-off-by: zyfjeff <[email protected]>
  • Loading branch information
zyfjeff committed Jun 8, 2022
1 parent e0c085b commit 9d991f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/nydusify/tests/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ func NewRegistry(t *testing.T) *Registry {
}

func (registry *Registry) Destroy(t *testing.T) {
run(t, fmt.Sprintf("docker rm -f %s", registry.id), true)
run(t, fmt.Sprintf("docker stop %s", registry.id), true)
run(t, fmt.Sprintf("docker rm -f %s", registry.id), true)
}

func (registry *Registry) Build(t *testing.T, source string) {
Expand Down

0 comments on commit 9d991f8

Please sign in to comment.