From 12044af2e8ab8753ac72c2b5c0da3abaabf4d772 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 24 Jan 2024 16:28:21 +0800 Subject: [PATCH] chore: remove refs to deprecated io/ioutil Signed-off-by: guoguangwu --- test/HAProxyMock.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/HAProxyMock.go b/test/HAProxyMock.go index 43d98b55..df6ce0df 100644 --- a/test/HAProxyMock.go +++ b/test/HAProxyMock.go @@ -3,7 +3,6 @@ package test import ( "bufio" "io" - "io/ioutil" "net" "os" "testing" @@ -86,7 +85,7 @@ func (haproxy *HAProxyMock) handleConnection(conn net.Conn) { } func socket() string { - f, err := ioutil.TempFile("", "haproxy-sock") + f, err := os.CreateTemp("", "haproxy-sock") if err != nil { panic(err) }