8
8
"testing"
9
9
10
10
"gotest.tools/assert"
11
- "gotest.tools/fs"
12
11
"gotest.tools/icmd"
13
12
)
14
13
@@ -54,8 +53,6 @@ func verifyImageIDListOutput(t *testing.T, cmd icmd.Cmd, count int, distinct int
54
53
func TestImageList (t * testing.T ) {
55
54
runWithDindSwarmAndRegistry (t , func (info dindSwarmAndRegistryInfo ) {
56
55
cmd := info .configuredCmd
57
- dir := fs .NewDir (t , "" )
58
- defer dir .Remove ()
59
56
60
57
insertBundles (t , cmd , info )
61
58
@@ -72,8 +69,6 @@ b-simple-app:latest simple
72
69
func TestImageListQuiet (t * testing.T ) {
73
70
runWithDindSwarmAndRegistry (t , func (info dindSwarmAndRegistryInfo ) {
74
71
cmd := info .configuredCmd
75
- dir := fs .NewDir (t , "" )
76
- defer dir .Remove ()
77
72
insertBundles (t , cmd , info )
78
73
verifyImageIDListOutput (t , cmd , 3 , 2 )
79
74
})
@@ -82,8 +77,6 @@ func TestImageListQuiet(t *testing.T) {
82
77
func TestImageListDigests (t * testing.T ) {
83
78
runWithDindSwarmAndRegistry (t , func (info dindSwarmAndRegistryInfo ) {
84
79
cmd := info .configuredCmd
85
- dir := fs .NewDir (t , "" )
86
- defer dir .Remove ()
87
80
insertBundles (t , cmd , info )
88
81
expected := `APP IMAGE DIGEST APP NAME
89
82
%s <none> push-pull
@@ -98,8 +91,6 @@ b-simple-app:latest <none> simple
98
91
func TestImageRm (t * testing.T ) {
99
92
runWithDindSwarmAndRegistry (t , func (info dindSwarmAndRegistryInfo ) {
100
93
cmd := info .configuredCmd
101
- dir := fs .NewDir (t , "" )
102
- defer dir .Remove ()
103
94
104
95
insertBundles (t , cmd , info )
105
96
0 commit comments