Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit fd651ed

Browse files
committed
remove temp dirs from image list tests
Removed the temporary directories from being created in the app image ls tests as they are not used. Signed-off-by: Nick Adcock <[email protected]>
1 parent fe99fda commit fd651ed

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

e2e/images_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"testing"
99

1010
"gotest.tools/assert"
11-
"gotest.tools/fs"
1211
"gotest.tools/icmd"
1312
)
1413

@@ -54,8 +53,6 @@ func verifyImageIDListOutput(t *testing.T, cmd icmd.Cmd, count int, distinct int
5453
func TestImageList(t *testing.T) {
5554
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
5655
cmd := info.configuredCmd
57-
dir := fs.NewDir(t, "")
58-
defer dir.Remove()
5956

6057
insertBundles(t, cmd, info)
6158

@@ -72,8 +69,6 @@ b-simple-app:latest simple
7269
func TestImageListQuiet(t *testing.T) {
7370
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
7471
cmd := info.configuredCmd
75-
dir := fs.NewDir(t, "")
76-
defer dir.Remove()
7772
insertBundles(t, cmd, info)
7873
verifyImageIDListOutput(t, cmd, 3, 2)
7974
})
@@ -82,8 +77,6 @@ func TestImageListQuiet(t *testing.T) {
8277
func TestImageListDigests(t *testing.T) {
8378
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
8479
cmd := info.configuredCmd
85-
dir := fs.NewDir(t, "")
86-
defer dir.Remove()
8780
insertBundles(t, cmd, info)
8881
expected := `APP IMAGE DIGEST APP NAME
8982
%s <none> push-pull
@@ -98,8 +91,6 @@ b-simple-app:latest <none> simple
9891
func TestImageRm(t *testing.T) {
9992
runWithDindSwarmAndRegistry(t, func(info dindSwarmAndRegistryInfo) {
10093
cmd := info.configuredCmd
101-
dir := fs.NewDir(t, "")
102-
defer dir.Remove()
10394

10495
insertBundles(t, cmd, info)
10596

0 commit comments

Comments
 (0)