From 4f13fe8188335acd79d2dd76963d1e43c503373b Mon Sep 17 00:00:00 2001 From: guangwu Date: Sat, 6 May 2023 16:37:43 +0800 Subject: [PATCH] io/ioutil deprecated (#3215) --- core/mr/mapreduce_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mr/mapreduce_test.go b/core/mr/mapreduce_test.go index 00418cc8..60b1427c 100644 --- a/core/mr/mapreduce_test.go +++ b/core/mr/mapreduce_test.go @@ -3,7 +3,7 @@ package mr import ( "context" "errors" - "io/ioutil" + "io" "log" "runtime" "sync/atomic" @@ -17,7 +17,7 @@ import ( var errDummy = errors.New("dummy") func init() { - log.SetOutput(ioutil.Discard) + log.SetOutput(io.Discard) } func TestFinish(t *testing.T) {