File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package network
22
33import (
44 "context"
5- "io/ioutil "
5+ "io"
66 "testing"
77
88 "github.com/docker/cli/internal/test"
@@ -37,7 +37,7 @@ func TestNetworkConnectErrors(t *testing.T) {
3737 }),
3838 )
3939 cmd .SetArgs (tc .args )
40- cmd .SetOut (ioutil .Discard )
40+ cmd .SetOut (io .Discard )
4141 assert .ErrorContains (t , cmd .Execute (), tc .expectedError )
4242
4343 }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package network
22
33import (
44 "context"
5- "io/ioutil "
5+ "io"
66 "strings"
77 "testing"
88
@@ -137,7 +137,7 @@ func TestNetworkCreateErrors(t *testing.T) {
137137 for key , value := range tc .flags {
138138 assert .NilError (t , cmd .Flags ().Set (key , value ))
139139 }
140- cmd .SetOut (ioutil .Discard )
140+ cmd .SetOut (io .Discard )
141141 assert .ErrorContains (t , cmd .Execute (), tc .expectedError )
142142
143143 }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package network
22
33import (
44 "context"
5- "io/ioutil "
5+ "io"
66 "testing"
77
88 "github.com/docker/cli/internal/test"
@@ -35,7 +35,7 @@ func TestNetworkDisconnectErrors(t *testing.T) {
3535 }),
3636 )
3737 cmd .SetArgs (tc .args )
38- cmd .SetOut (ioutil .Discard )
38+ cmd .SetOut (io .Discard )
3939 assert .ErrorContains (t , cmd .Execute (), tc .expectedError )
4040 }
4141}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package network
22
33import (
44 "context"
5- "io/ioutil "
5+ "io"
66 "testing"
77
88 "github.com/docker/cli/internal/test"
@@ -35,7 +35,7 @@ func TestNetworkListErrors(t *testing.T) {
3535 networkListFunc : tc .networkListFunc ,
3636 }),
3737 )
38- cmd .SetOut (ioutil .Discard )
38+ cmd .SetOut (io .Discard )
3939 assert .ErrorContains (t , cmd .Execute (), tc .expectedError )
4040 }
4141}
You can’t perform that action at this time.
0 commit comments