mirror of
https://github.com/docker/cli.git
synced 2026-01-19 21:41:31 +03:00
Add unit test for #174 Delete image already deleted then repulled
Upstream-commit: baea0a98f84f7827485505425b23ee0ac7ce2a23 Component: engine
This commit is contained in:
@@ -158,6 +158,14 @@ func TestDelete(t *testing.T) {
|
||||
}
|
||||
assertNImages(graph, t, 1)
|
||||
|
||||
// Test delete twice (pull -> rm -> pull -> rm)
|
||||
if err := graph.Register(archive, img1); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if err := graph.Delete(img1.Id); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
assertNImages(graph, t, 1)
|
||||
}
|
||||
|
||||
func assertNImages(graph *Graph, t *testing.T, n int) {
|
||||
|
||||
Reference in New Issue
Block a user