Skip to content

Commit

Permalink
Try with common image
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Gupta <[email protected]>
  • Loading branch information
manugupt1 committed Oct 22, 2024
1 parent b10edc7 commit 7ec96d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/nerdctl/image/image_remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,11 @@ func TestForceRemoveImage(t *testing.T) {
base := testutil.NewBase(t)
tID := testutil.Identifier(t)
base.Cmd("image", "prune", "--force", "--all").AssertOK()
base.Cmd("pull", testutil.AlpineImage).AssertOK()
base.Cmd("run", "-d", "--name", tID+"-force", testutil.AlpineImage, "sleep", "10s").AssertOK()
base.Cmd("rmi", "-f", testutil.AlpineImage).AssertOK()
base.Cmd("pull", testutil.CommonImage).AssertOK()
base.Cmd("run", "-d", "--name", tID+"-force", testutil.CommonImage, "sleep", "10s").AssertOK()
base.Cmd("rmi", "-f", testutil.CommonImage).AssertOK()
// Ensure that the image is deleted
base.Cmd("images").AssertOutNotContains(testutil.ImageRepo(testutil.AlpineImage))
base.Cmd("images").AssertOutNotContains(testutil.ImageRepo(testutil.CommonImage))
// Ensure that the container is still running
base.Cmd("ps", "-a").AssertOutContains(tID + "-force")
// Force remove to clean
Expand Down

0 comments on commit 7ec96d9

Please sign in to comment.