Skip to content

Commit

Permalink
fix: remove use of ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Aug 25, 2022
1 parent a157a7c commit 5d2c09d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions merkledag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"math/rand"
"strings"
"sync"
Expand Down Expand Up @@ -252,7 +251,7 @@ func runBatchFetchTest(t *testing.T, read io.Reader) {

dagr := makeTestDAGReader(t, root, dagservs[0])

expected, err := ioutil.ReadAll(dagr)
expected, err := io.ReadAll(dagr)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -284,7 +283,7 @@ func runBatchFetchTest(t *testing.T, read io.Reader) {
errs <- ErrNotProtobuf
}
read := makeTestDAGReader(t, firstpb, dagservs[i])
datagot, err := ioutil.ReadAll(read)
datagot, err := io.ReadAll(read)
if err != nil {
errs <- err
}
Expand Down

0 comments on commit 5d2c09d

Please sign in to comment.