diff options
Diffstat (limited to 'lib/parse/hyperlinks_test.go')
-rw-r--r-- | lib/parse/hyperlinks_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/parse/hyperlinks_test.go b/lib/parse/hyperlinks_test.go index f16392a5..ba67664b 100644 --- a/lib/parse/hyperlinks_test.go +++ b/lib/parse/hyperlinks_test.go @@ -1,7 +1,7 @@ package parse_test import ( - "io/ioutil" + "io" "strings" "testing" @@ -75,7 +75,7 @@ func TestHyperlinks(t *testing.T) { // make sure reader is exact copy of input reader reader, links := parse.HttpLinks(strings.NewReader(test.text)) - if data, err := ioutil.ReadAll(reader); err != nil { + if data, err := io.ReadAll(reader); err != nil { t.Errorf("could not read text: %v", err) } else if string(data) != test.text { t.Errorf("did not copy input reader correctly") |