From 02ca2342ab01627eb5fdbb3174792b86fc1de7a9 Mon Sep 17 00:00:00 2001 From: Cosrider <40035645+Cosrider@users.noreply.github.com> Date: Mon, 22 Aug 2022 04:41:31 +0800 Subject: [PATCH] app/victoria-metrics: replace ioutil package with os package (#2993) Signed-off-by: Cosrider Signed-off-by: Cosrider --- app/victoria-metrics/main_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/victoria-metrics/main_test.go b/app/victoria-metrics/main_test.go index 25a4b433f..805a5567a 100644 --- a/app/victoria-metrics/main_test.go +++ b/app/victoria-metrics/main_test.go @@ -6,7 +6,6 @@ import ( "flag" "fmt" "io" - "io/ioutil" "log" "net" "net/http" @@ -308,7 +307,7 @@ func readIn(readFor string, t *testing.T, insertTime time.Time) []test { if filepath.Ext(path) != ".json" { return nil } - b, err := ioutil.ReadFile(path) + b, err := os.ReadFile(path) s.noError(err) item := test{} s.noError(json.Unmarshal(b, &item))