Skip to content

Commit

Permalink
replace deprecate package (#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato authored Oct 5, 2022
1 parent dc40467 commit 58e0c0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cosign/remote/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package remote

import (
"fmt"
"io/ioutil"
"io"
"log"
"net/http/httptest"
"net/url"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 58e0c0f

Please sign in to comment.