From 0e031cf8d764abb3d9e3b3ccf88ff4a74edf1c91 Mon Sep 17 00:00:00 2001 From: Wu Shuwen <108231307+dajiaohuang@users.noreply.github.com> Date: Tue, 25 Aug 2026 02:54:18 +0800 Subject: [PATCH] test: replace deprecated ioutil usage --- nocopy_readwriter_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nocopy_readwriter_test.go b/nocopy_readwriter_test.go index da73b9ab..1b99f063 100644 --- a/nocopy_readwriter_test.go +++ b/nocopy_readwriter_test.go @@ -19,7 +19,6 @@ package netpoll import ( "errors" "io" - "io/ioutil" "testing" ) @@ -133,7 +132,7 @@ func TestIOReadWriter2(t *testing.T) { MustNil(t, err) Equal(t, n, len(msg)) - p, err := ioutil.ReadAll(reader) + p, err := io.ReadAll(reader) MustNil(t, err) Equal(t, len(p), len(msg)) }