2
0
Эх сурвалжийг харах

Merge pull request #2152 from testwill/ioutil

chore: remove refs to deprecated io/ioutil
Matt Ray 2 жил өмнө
parent
commit
997dc8badf

+ 3 - 3
pkg/cloud/aws/provider_test.go

@@ -2,7 +2,7 @@ package aws
 
 
 import (
 import (
 	"bytes"
 	"bytes"
-	"io/ioutil"
+	"io"
 	"net/http"
 	"net/http"
 	"net/url"
 	"net/url"
 	"reflect"
 	"reflect"
@@ -306,7 +306,7 @@ func Test_populate_pricing(t *testing.T) {
 	`
 	`
 
 
 	testResponse := http.Response{
 	testResponse := http.Response{
-		Body: ioutil.NopCloser(bytes.NewBufferString(awsUSEastString)),
+		Body: io.NopCloser(bytes.NewBufferString(awsUSEastString)),
 		Request: &http.Request{
 		Request: &http.Request{
 			URL: &url.URL{
 			URL: &url.URL{
 				Scheme: "https",
 				Scheme: "https",
@@ -445,7 +445,7 @@ func Test_populate_pricing(t *testing.T) {
 	}
 	}
 
 
 	testResponse = http.Response{
 	testResponse = http.Response{
-		Body: ioutil.NopCloser(bytes.NewBufferString(awsCnString)),
+		Body: io.NopCloser(bytes.NewBufferString(awsCnString)),
 		Request: &http.Request{
 		Request: &http.Request{
 			URL: &url.URL{
 			URL: &url.URL{
 				Scheme: "https",
 				Scheme: "https",