aboutsummaryrefslogtreecommitdiffstats
path: root/modules/log/conn_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/log/conn_test.go')
-rw-r--r--modules/log/conn_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/conn_test.go b/modules/log/conn_test.go
index dc5de732f4..158a8ca6ce 100644
--- a/modules/log/conn_test.go
+++ b/modules/log/conn_test.go
@@ -6,7 +6,7 @@ package log
import (
"fmt"
- "io/ioutil"
+ "io"
"net"
"strings"
"sync"
@@ -20,7 +20,7 @@ func listenReadAndClose(t *testing.T, l net.Listener, expected string) {
conn, err := l.Accept()
assert.NoError(t, err)
defer conn.Close()
- written, err := ioutil.ReadAll(conn)
+ written, err := io.ReadAll(conn)
assert.NoError(t, err)
assert.Equal(t, expected, string(written))