浏览代码

integration: TestSaveRepoWithMultipleImages remove redundant remove

This delete was originally added in b37fdc5dd1db196209ebb860c88a37d67bb2cf98
and migrated from `deleteImages(repoName)` in commit 1e55ace87549a874a552e60e43b1bf62575e9c83,
however, deleting `foobar-save-multi-images-test` (`foobar-save-multi-images-test:latest`)
always resulted in an error;

    Error response from daemon: No such image: foobar-save-multi-images-test:latest

This patch removes the redundant image delete.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 年之前
父节点
当前提交
0dae0f2b5e
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      integration/image/save_test.go

+ 0 - 3
integration/image/save_test.go

@@ -14,7 +14,6 @@ import (
 	"time"
 
 	"github.com/cpuguy83/tar2go"
-	"github.com/docker/docker/api/types"
 	containertypes "github.com/docker/docker/api/types/container"
 	"github.com/docker/docker/integration/internal/build"
 	"github.com/docker/docker/integration/internal/container"
@@ -110,8 +109,6 @@ func TestSaveRepoWithMultipleImages(t *testing.T) {
 	idBar := makeImage("busybox:latest", tagBar)
 	idBusybox := busyboxImg.ID
 
-	client.ImageRemove(ctx, repoName, types.ImageRemoveOptions{Force: true})
-
 	rdr, err := client.ImageSave(ctx, []string{repoName, "busybox:latest"})
 	assert.NilError(t, err)
 	defer rdr.Close()