Drop deprecated `io/ioutil`
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
78f4bdc8f6
commit
cd7da9df8c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue