mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
added proper returns type, move the auto-prune in v1.1 api
This commit is contained in:
parent
5aa95b667c
commit
9060b5c2f5
8 changed files with 102 additions and 32 deletions
|
|
@ -29,7 +29,7 @@ func TestContainerTagImageDelete(t *testing.T) {
|
|||
t.Errorf("Excepted 3 images, %d found", len(images))
|
||||
}
|
||||
|
||||
if err := srv.ImageDelete("utest/docker:tag2"); err != nil {
|
||||
if _, err := srv.ImageDelete("utest/docker:tag2", true); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ func TestContainerTagImageDelete(t *testing.T) {
|
|||
t.Errorf("Excepted 2 images, %d found", len(images))
|
||||
}
|
||||
|
||||
if err := srv.ImageDelete("utest:tag1"); err != nil {
|
||||
if _, err := srv.ImageDelete("utest:tag1", true); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue