From 58e0c0f4801726d2495f54dd16dcb661faebfa77 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 5 Oct 2022 11:52:44 -0600 Subject: [PATCH] replace deprecate package (#2314) --- pkg/cosign/remote/index_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cosign/remote/index_test.go b/pkg/cosign/remote/index_test.go index 08956b67799..44e6318443d 100644 --- a/pkg/cosign/remote/index_test.go +++ b/pkg/cosign/remote/index_test.go @@ -17,7 +17,7 @@ package remote import ( "fmt" - "io/ioutil" + "io" "log" "net/http/httptest" "net/url" @@ -109,7 +109,7 @@ func TestUploadFiles(t *testing.T) { err error ) // Set up a fake registry (with NOP logger to avoid spamming test logs). - nopLog := log.New(ioutil.Discard, "", 0) + nopLog := log.New(io.Discard, "", 0) s := httptest.NewServer(registry.New(registry.Logger(nopLog))) defer s.Close() u, err := url.Parse(s.URL)