Skip to content

Commit

Permalink
use ioutil until bump to > 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Dec 6, 2023
1 parent 7de33fa commit 1ac8465
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example_bootstrap_from_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package unleash_test

import (
"fmt"
"io"
"io/ioutil"
"os"
"testing"
"time"
Expand All @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions unleash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package unleash_test

import (
"fmt"
"io"
"io/ioutil"
"os"
"testing"
"time"
Expand All @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 1ac8465

Please sign in to comment.