From 7918e812afac9f08a3e4da98b9466ec1445261fd Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 11 Sep 2023 13:35:08 +0200 Subject: [PATCH] Update process_linux_test.go --- process/process_linux_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/process/process_linux_test.go b/process/process_linux_test.go index c2001149d..d9e99aa23 100644 --- a/process/process_linux_test.go +++ b/process/process_linux_test.go @@ -58,7 +58,7 @@ func Test_Process_splitProcStat(t *testing.T) { } func Test_Process_splitProcStat_fromFile(t *testing.T) { - pids, err := ioutil.ReadDir("testdata/linux/") + pids, err := os.ReadDir("testdata/linux/") if err != nil { t.Error(err) } @@ -94,7 +94,7 @@ func Test_Process_splitProcStat_fromFile(t *testing.T) { } func Test_fillFromCommWithContext(t *testing.T) { - pids, err := ioutil.ReadDir("testdata/linux/") + pids, err := os.ReadDir("testdata/linux/") if err != nil { t.Error(err) } @@ -115,7 +115,7 @@ func Test_fillFromCommWithContext(t *testing.T) { } func Test_fillFromStatusWithContext(t *testing.T) { - pids, err := ioutil.ReadDir("testdata/linux/") + pids, err := os.ReadDir("testdata/linux/") if err != nil { t.Error(err) }