Skip to content

Commit acbec64

Browse files
authored
Merge pull request #3618 from apostasie/fix-leaking-test
Fix test leaking tagged Alpine image
2 parents ed86d37 + 708f172 commit acbec64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/nerdctl/builder/builder_builder_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ CMD ["echo", "nerdctl-builder-debug-test-string"]`, testutil.CommonImage)
8686
},
8787
{
8888
Description: "WithPull",
89+
NoParallel: true,
8990
Setup: func(data test.Data, helpers test.Helpers) {
9091
// FIXME: this test should be rewritten to dynamically retrieve the ids, and use images
9192
// available on all platforms
@@ -106,6 +107,9 @@ CMD ["echo", "nerdctl-builder-debug-test-string"]`, testutil.CommonImage)
106107
data.Set("oldImageSha", oldImageSha)
107108
data.Set("newImageSha", newImageSha)
108109
},
110+
Cleanup: func(data test.Data, helpers test.Helpers) {
111+
helpers.Anyhow("rmi", testutil.AlpineImage)
112+
},
109113
SubTests: []*test.Case{
110114
{
111115
Description: "pull false",

0 commit comments

Comments
 (0)