]> Sergey Matveev's repositories - btrtrc.git/blobdiff - tracker/udp_test.go
chore: remove refs to deprecated io/ioutil
[btrtrc.git] / tracker / udp_test.go
index cf18e0de9f2dc20fc07f7f13fd9a6b99fc48fe03..232aeb1973a51f0229b6591894473ea4a61c94c8 100644 (file)
@@ -6,7 +6,7 @@ import (
        "crypto/rand"
        "errors"
        "fmt"
-       "io/ioutil"
+       "io"
        "net"
        "net/url"
        "sync"
@@ -179,7 +179,7 @@ func TestURLPathOption(t *testing.T) {
        r = bytes.NewReader(b[:n])
        udp.Read(r, &h)
        udp.Read(r, &AnnounceRequest{})
-       all, _ := ioutil.ReadAll(r)
+       all, _ := io.ReadAll(r)
        if string(all) != "\x02\x09/announce" {
                t.FailNow()
        }