Browse code

Fix failing integration tests

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)

Derek McGowan authored on 2015/01/17 04:34:45
Showing 1 changed files
... ...
@@ -40,6 +40,7 @@ func TestPullImageWithAliases(t *testing.T) {
40 40
 	if out, _, err := runCommandWithOutput(pullCmd); err != nil {
41 41
 		t.Fatalf("Failed to pull %v: error %v, output %q", repoName, err, out)
42 42
 	}
43
+	defer deleteImages(repos[0])
43 44
 	if err := exec.Command(dockerBinary, "inspect", repos[0]).Run(); err != nil {
44 45
 		t.Fatalf("Image %v was not pulled down", repos[0])
45 46
 	}