mirror of https://github.com/docker/cli.git
cli: remove deprecated io/ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 86db51e86e
)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
dc4e6835b7
commit
a0f0a4fe7a
|
@ -2,7 +2,7 @@ package cli
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
@ -119,7 +119,7 @@ func runTestCases(t *testing.T, testCases []testCase) {
|
||||||
for _, tc := range testCases {
|
for _, tc := range testCases {
|
||||||
cmd := newDummyCommand(tc.validateFunc)
|
cmd := newDummyCommand(tc.validateFunc)
|
||||||
cmd.SetArgs(tc.args)
|
cmd.SetArgs(tc.args)
|
||||||
cmd.SetOut(ioutil.Discard)
|
cmd.SetOut(io.Discard)
|
||||||
|
|
||||||
err := cmd.Execute()
|
err := cmd.Execute()
|
||||||
assert.ErrorContains(t, err, tc.expectedError)
|
assert.ErrorContains(t, err, tc.expectedError)
|
||||||
|
|
Loading…
Reference in New Issue