Skip to content

Commit

Permalink
Merge pull request containerd#3618 from apostasie/fix-leaking-test
Browse files Browse the repository at this point in the history
Fix test leaking tagged Alpine image
  • Loading branch information
AkihiroSuda authored Oct 30, 2024
2 parents ed86d37 + 708f172 commit acbec64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/nerdctl/builder/builder_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ CMD ["echo", "nerdctl-builder-debug-test-string"]`, testutil.CommonImage)
},
{
Description: "WithPull",
NoParallel: true,
Setup: func(data test.Data, helpers test.Helpers) {
// FIXME: this test should be rewritten to dynamically retrieve the ids, and use images
// available on all platforms
Expand All @@ -106,6 +107,9 @@ CMD ["echo", "nerdctl-builder-debug-test-string"]`, testutil.CommonImage)
data.Set("oldImageSha", oldImageSha)
data.Set("newImageSha", newImageSha)
},
Cleanup: func(data test.Data, helpers test.Helpers) {
helpers.Anyhow("rmi", testutil.AlpineImage)
},
SubTests: []*test.Case{
{
Description: "pull false",
Expand Down

0 comments on commit acbec64

Please sign in to comment.