@@ -2,7 +2,7 @@ package volume
22
33import (
44 "fmt"
5- "io/ioutil "
5+ "io"
66 "runtime"
77 "strings"
88 "testing"
@@ -48,7 +48,7 @@ func TestVolumePruneErrors(t *testing.T) {
4848 for key , value := range tc .flags {
4949 cmd .Flags ().Set (key , value )
5050 }
51- cmd .SetOut (ioutil .Discard )
51+ cmd .SetOut (io .Discard )
5252 assert .ErrorContains (t , cmd .Execute (), tc .expectedError )
5353 }
5454}
@@ -86,7 +86,7 @@ func TestVolumePrunePromptYes(t *testing.T) {
8686 volumePruneFunc : simplePruneFunc ,
8787 })
8888
89- cli .SetIn (streams .NewIn (ioutil .NopCloser (strings .NewReader (input ))))
89+ cli .SetIn (streams .NewIn (io .NopCloser (strings .NewReader (input ))))
9090 cmd := NewPruneCommand (cli )
9191 assert .NilError (t , cmd .Execute ())
9292 golden .Assert (t , cli .OutBuffer ().String (), "volume-prune-yes.golden" )
@@ -102,7 +102,7 @@ func TestVolumePrunePromptNo(t *testing.T) {
102102 volumePruneFunc : simplePruneFunc ,
103103 })
104104
105- cli .SetIn (streams .NewIn (ioutil .NopCloser (strings .NewReader (input ))))
105+ cli .SetIn (streams .NewIn (io .NopCloser (strings .NewReader (input ))))
106106 cmd := NewPruneCommand (cli )
107107 assert .NilError (t , cmd .Execute ())
108108 golden .Assert (t , cli .OutBuffer ().String (), "volume-prune-no.golden" )
0 commit comments