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