Drop deprecated `io/ioutil`

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2021-11-22 16:31:00 +01:00
parent 78f4bdc8f6
commit cd7da9df8c
1 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
"io/ioutil"
"log" "log"
"net" "net"
"net/http" "net/http"
@ -55,7 +54,7 @@ var (
func TestMain(m *testing.M) { func TestMain(m *testing.M) {
hc, close = newTestServer(func(w http.ResponseWriter, r *http.Request) { 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) { if r.RequestURI == fmt.Sprintf("/storage/v1/b/%s?alt=json&prettyPrint=false&projection=full", bucketName) {
w.WriteHeader(200) w.WriteHeader(200)
response := getBucket() response := getBucket()