Skip to content

Commit

Permalink
force delete image in pushImageToIPFS
Browse files Browse the repository at this point in the history
Signed-off-by: Jin Dong <jin.dong@databricks.com>
  • Loading branch information
djdongjin committed Mar 25, 2024
1 parent e0c24cf commit d9436bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nerdctl/ipfs_linux_test.go
Expand Up @@ -159,7 +159,7 @@ func TestIPFSWithLazyPullingCommit(t *testing.T) {
func pushImageToIPFS(t *testing.T, base *testutil.Base, name string, opts ...string) string {
base.Cmd("pull", name).AssertOK()
ipfsCID := cidOf(t, base.Cmd(append([]string{"push"}, append(opts, "ipfs://"+name)...)...).OutLines())
base.Cmd("rmi", name).AssertOK()
base.Cmd("rmi", "-f", name).AssertOK()
return ipfsCID
}

Expand Down

0 comments on commit d9436bc

Please sign in to comment.