Skip to content

Commit 4e5e0aa

Browse files
committed
use os.MkdirTemp instead of ioutil.TempDir
1 parent 369656f commit 4e5e0aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: exec/local_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package exec
33
import (
44
"context"
55
"io"
6-
"io/ioutil"
76
"os"
87
"path"
98
"path/filepath"
@@ -20,7 +19,7 @@ func TestLocalExec_Run(t *testing.T) {
2019
require := require.New(t)
2120

2221
// create tempdir
23-
tmpDir, err := ioutil.TempDir("/tmp", "texd")
22+
tmpDir, err := os.MkdirTemp("/tmp", "texd")
2423
require.NoError(err)
2524
defer os.RemoveAll(tmpDir)
2625

0 commit comments

Comments
 (0)