diff --git a/cmd/nerdctl/ipfs/ipfs_simple_linux_test.go b/cmd/nerdctl/ipfs/ipfs_simple_linux_test.go index cddc1805d30..5c7b5697464 100644 --- a/cmd/nerdctl/ipfs/ipfs_simple_linux_test.go +++ b/cmd/nerdctl/ipfs/ipfs_simple_linux_test.go @@ -104,7 +104,7 @@ func TestIPFSSimple(t *testing.T) { helpers.Ensure("pull", "ipfs://"+data.Get(transformedImageCIDKey)) }, Cleanup: func(data test.Data, helpers test.Helpers) { - helpers.Anyhow("rm", data.Identifier("commit-container")) + helpers.Anyhow("rm", "-f", data.Identifier("commit-container")) helpers.Anyhow("rmi", "-f", data.Identifier("commit-image")) if data.Get(mainImageCIDKey) != "" { helpers.Anyhow("rmi", "-f", data.Get(mainImageCIDKey)) @@ -142,7 +142,7 @@ func TestIPFSSimple(t *testing.T) { helpers.Ensure("pull", "ipfs://"+data.Get(transformedImageCIDKey)) }, Cleanup: func(data test.Data, helpers test.Helpers) { - helpers.Anyhow("rm", data.Identifier("commit-container")) + helpers.Anyhow("rm", "-f", data.Identifier("commit-container")) helpers.Anyhow("rmi", "-f", data.Identifier("commit-image")) if data.Get(mainImageCIDKey) != "" { helpers.Anyhow("rmi", "-f", data.Get(mainImageCIDKey))