mirror of https://github.com/docker/cli.git
internal/test: remove deprecated io/ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 7491c5ac65
)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
ac72d64c30
commit
8793cdd2c7
|
@ -4,7 +4,6 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/docker/cli/cli/command"
|
"github.com/docker/cli/cli/command"
|
||||||
|
@ -52,7 +51,7 @@ func NewFakeCli(client client.APIClient, opts ...func(*FakeCli)) *FakeCli {
|
||||||
out: streams.NewOut(outBuffer),
|
out: streams.NewOut(outBuffer),
|
||||||
outBuffer: outBuffer,
|
outBuffer: outBuffer,
|
||||||
err: errBuffer,
|
err: errBuffer,
|
||||||
in: streams.NewIn(ioutil.NopCloser(strings.NewReader(""))),
|
in: streams.NewIn(io.NopCloser(strings.NewReader(""))),
|
||||||
// Use an empty string for filename so that tests don't create configfiles
|
// Use an empty string for filename so that tests don't create configfiles
|
||||||
// Set cli.ConfigFile().Filename to a tempfile to support Save.
|
// Set cli.ConfigFile().Filename to a tempfile to support Save.
|
||||||
configfile: configfile.New(""),
|
configfile: configfile.New(""),
|
||||||
|
|
Loading…
Reference in New Issue