diff --git a/example_bootstrap_from_file_test.go b/example_bootstrap_from_file_test.go index 4e6d025..c63f169 100644 --- a/example_bootstrap_from_file_test.go +++ b/example_bootstrap_from_file_test.go @@ -2,7 +2,7 @@ package unleash_test import ( "fmt" - "io" + "io/ioutil" "os" "testing" "time" @@ -24,7 +24,7 @@ func Test_bootstrapFromFile(t *testing.T) { Persist(). Reply(200) // Read the file into a byte slice - byteValue, _ := io.ReadAll(demoReader) + byteValue, _ := ioutil.ReadAll(demoReader) // Convert the byte slice to a string jsonStr := string(byteValue) diff --git a/unleash_test.go b/unleash_test.go index e0def13..9d0cdbe 100644 --- a/unleash_test.go +++ b/unleash_test.go @@ -2,7 +2,7 @@ package unleash_test import ( "fmt" - "io" + "io/ioutil" "os" "testing" "time" @@ -21,7 +21,7 @@ func Test_withVariants(t *testing.T) { Post("/client/register"). Reply(200) // Read the file into a byte slice - byteValue, _ := io.ReadAll(demoReader) + byteValue, _ := ioutil.ReadAll(demoReader) // Convert the byte slice to a string jsonStr := string(byteValue) @@ -71,7 +71,7 @@ func Test_withVariantsAndANonExistingStrategyName(t *testing.T) { Post("/client/register"). Reply(200) - byteValue, _ := io.ReadAll(demoReader) + byteValue, _ := ioutil.ReadAll(demoReader) // Convert the byte slice to a string jsonStr := string(byteValue)