diff options
Diffstat (limited to 'data/datasource_git_test.go')
| -rw-r--r-- | data/datasource_git_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/datasource_git_test.go b/data/datasource_git_test.go index 0c20c558..157e14a8 100644 --- a/data/datasource_git_test.go +++ b/data/datasource_git_test.go @@ -4,7 +4,7 @@ import ( "context" "encoding/base64" "fmt" - "io/ioutil" + "io" "net/url" "os" "strings" @@ -336,7 +336,7 @@ func TestOpenFileRepo(t *testing.T) { f, err := fs.Open("/foo/bar/hi.txt") assert.NilError(t, err) - b, _ := ioutil.ReadAll(f) + b, _ := io.ReadAll(f) assert.Equal(t, "hello world", string(b)) _, repo, err := g.clone(ctx, mustParseURL("git+file:///repo#main"), 0) @@ -375,7 +375,7 @@ func TestOpenBareFileRepo(t *testing.T) { f, err := fs.Open("/hello.txt") assert.NilError(t, err) - b, _ := ioutil.ReadAll(f) + b, _ := io.ReadAll(f) assert.Equal(t, "hello world", string(b)) } |
