aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater/winhttp/winhttp_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-01-29 01:48:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-01 16:55:02 +0100
commitfdf117deebe23b32bb4cdd4f84abb072dc4eb0cd (patch)
tree6ffa20f6a25e5f7ab76e2fbf49f2c08068587c92 /updater/winhttp/winhttp_test.go
parentconf: don't sleep before failure in dns resolution (diff)
downloadwireguard-windows-fdf117deebe23b32bb4cdd4f84abb072dc4eb0cd.tar.xz
wireguard-windows-fdf117deebe23b32bb4cdd4f84abb072dc4eb0cd.zip
global: move away from ioutil
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--updater/winhttp/winhttp_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/updater/winhttp/winhttp_test.go b/updater/winhttp/winhttp_test.go
index 96b17021..41fbeb6b 100644
--- a/updater/winhttp/winhttp_test.go
+++ b/updater/winhttp/winhttp_test.go
@@ -8,7 +8,6 @@ package winhttp
import (
"fmt"
"io"
- "io/ioutil"
"runtime"
"testing"
)
@@ -40,7 +39,7 @@ func TestResponse(t *testing.T) {
t.Fatal(err)
}
fmt.Printf("The length is %d\n", length)
- bytes, err := ioutil.ReadAll(r)
+ bytes, err := io.ReadAll(r)
if err != nil {
t.Fatal(err)
}