Skip to content

Commit

Permalink
Update process_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 authored Sep 11, 2023
1 parent 74d97fa commit 7b17718
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions process/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"os/exec"
Expand Down Expand Up @@ -303,7 +302,7 @@ func Test_Process_Name(t *testing.T) {
}

func Test_Process_Long_Name_With_Spaces(t *testing.T) {
tmpdir, err := ioutil.TempDir("", "")
tmpdir, err := os.MkdirTemp("", "")
if err != nil {
t.Fatalf("unable to create temp dir %v", err)
}
Expand Down Expand Up @@ -349,7 +348,7 @@ func Test_Process_Long_Name_With_Spaces(t *testing.T) {
}

func Test_Process_Long_Name(t *testing.T) {
tmpdir, err := ioutil.TempDir("", "")
tmpdir, err := os.MkdirTemp("", "")
if err != nil {
t.Fatalf("unable to create temp dir %v", err)
}
Expand Down Expand Up @@ -406,7 +405,7 @@ func Test_Process_Name_Against_Python(t *testing.T) {
t.Skipf("psutil not found for %s: %s", py3Path, out)
}

tmpdir, err := ioutil.TempDir("", "")
tmpdir, err := os.MkdirTemp("", "")
if err != nil {
t.Fatalf("unable to create temp dir %v", err)
}
Expand Down Expand Up @@ -775,7 +774,7 @@ func Test_IsRunning(t *testing.T) {
}

func Test_Process_Environ(t *testing.T) {
tmpdir, err := ioutil.TempDir("", "")
tmpdir, err := os.MkdirTemp("", "")
if err != nil {
t.Fatalf("unable to create temp dir %v", err)
}
Expand Down

0 comments on commit 7b17718

Please sign in to comment.