From 4359978ef22a22ddd5a19adf18cbc80cb44244fb Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Thu, 23 Feb 2023 14:28:18 +0100 Subject: all: ioutil is deprecated in go1.19 (#3718) --- pkg/tool/flags_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/tool') diff --git a/pkg/tool/flags_test.go b/pkg/tool/flags_test.go index 849e3fa00..0503c48fc 100644 --- a/pkg/tool/flags_test.go +++ b/pkg/tool/flags_test.go @@ -6,7 +6,7 @@ package tool import ( "flag" "fmt" - "io/ioutil" + "io" "strings" "testing" @@ -33,7 +33,7 @@ func TestParseFlags(t *testing.T) { t.Run(fmt.Sprint(i), func(t *testing.T) { vals := new(Values) flags := flag.NewFlagSet("", flag.ContinueOnError) - flags.SetOutput(ioutil.Discard) + flags.SetOutput(io.Discard) flags.BoolVar(&vals.Foo, "foo", false, "") flags.IntVar(&vals.Bar, "bar", 1, "") flags.StringVar(&vals.Baz, "baz", "baz", "") -- cgit mrf-deployment