aboutsummaryrefslogtreecommitdiff
path: root/src/net/writev_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/writev_test.go')
-rw-r--r--src/net/writev_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/writev_test.go b/src/net/writev_test.go
index c43be84418..d603b7f70a 100644
--- a/src/net/writev_test.go
+++ b/src/net/writev_test.go
@@ -11,7 +11,6 @@ import (
"fmt"
"internal/poll"
"io"
- "io/ioutil"
"reflect"
"runtime"
"sync"
@@ -28,7 +27,7 @@ func TestBuffers_read(t *testing.T) {
[]byte("in "),
[]byte("Gopherland ... "),
}
- got, err := ioutil.ReadAll(&buffers)
+ got, err := io.ReadAll(&buffers)
if err != nil {
t.Fatal(err)
}
@@ -141,7 +140,7 @@ func testBuffer_writeTo(t *testing.T, chunks int, useCopy bool) {
}
return nil
}, func(c *TCPConn) error {
- all, err := ioutil.ReadAll(c)
+ all, err := io.ReadAll(c)
if !bytes.Equal(all, want.Bytes()) || err != nil {
return fmt.Errorf("client read %q, %v; want %q, nil", all, err, want.Bytes())
}
@@ -154,7 +153,7 @@ func testBuffer_writeTo(t *testing.T, chunks int, useCopy bool) {
var wantSum int
switch runtime.GOOS {
- case "android", "darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd":
+ case "android", "darwin", "ios", "dragonfly", "freebsd", "illumos", "linux", "netbsd", "openbsd":
var wantMinCalls int
wantSum = want.Len()
v := chunks