diff --git a/pkg/gcp/gcp_test.go b/pkg/gcp/gcp_test.go index 99d72309..7f431a44 100644 --- a/pkg/gcp/gcp_test.go +++ b/pkg/gcp/gcp_test.go @@ -22,7 +22,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "log" "net" "net/http" @@ -55,7 +54,7 @@ var ( func TestMain(m *testing.M) { hc, close = newTestServer(func(w http.ResponseWriter, r *http.Request) { - io.Copy(ioutil.Discard, r.Body) + io.Copy(io.Discard, r.Body) if r.RequestURI == fmt.Sprintf("/storage/v1/b/%s?alt=json&prettyPrint=false&projection=full", bucketName) { w.WriteHeader(200) response := getBucket()