From da4ddcf337dad1b241f7d4c23d0170258f352703 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 19 Oct 2022 09:57:55 +0300 Subject: [PATCH] [#353] netmap: Get rid of `ioutil` Signed-off-by: Evgenii Stratonikov --- netmap/json_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/netmap/json_test.go b/netmap/json_test.go index 3e89e565..b8749d99 100644 --- a/netmap/json_test.go +++ b/netmap/json_test.go @@ -2,7 +2,6 @@ package netmap import ( "encoding/json" - "io/ioutil" "os" "path/filepath" "testing" @@ -48,7 +47,7 @@ func TestPlacementPolicy_Interopability(t *testing.T) { require.NoError(t, err) for i := range ds { - bs, err := ioutil.ReadFile(filepath.Join(testsDir, ds[i].Name())) + bs, err := os.ReadFile(filepath.Join(testsDir, ds[i].Name())) require.NoError(t, err) var tc TestCase @@ -96,7 +95,7 @@ func BenchmarkPlacementPolicyInteropability(b *testing.B) { require.NoError(b, err) for i := range ds { - bs, err := ioutil.ReadFile(filepath.Join(testsDir, ds[i].Name())) + bs, err := os.ReadFile(filepath.Join(testsDir, ds[i].Name())) require.NoError(b, err) var tc TestCase @@ -140,7 +139,7 @@ func BenchmarkPlacementPolicyInteropability(b *testing.B) { func BenchmarkManySelects(b *testing.B) { testsFile := filepath.Join("json_tests", "many_selects.json") - bs, err := ioutil.ReadFile(testsFile) + bs, err := os.ReadFile(testsFile) require.NoError(b, err) var tc TestCase