Skip to content

Commit

Permalink
use os.MkdirTemp instead of ioutil.TempDir
Browse files Browse the repository at this point in the history
  • Loading branch information
dmke committed Oct 10, 2022
1 parent 369656f commit 4e5e0aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exec/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package exec
import (
"context"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
Expand All @@ -20,7 +19,7 @@ func TestLocalExec_Run(t *testing.T) {
require := require.New(t)

// create tempdir
tmpDir, err := ioutil.TempDir("/tmp", "texd")
tmpDir, err := os.MkdirTemp("/tmp", "texd")
require.NoError(err)
defer os.RemoveAll(tmpDir)

Expand Down

0 comments on commit 4e5e0aa

Please sign in to comment.