Skip to content

Commit 9902c31

Browse files
committed
lint: fix usetesting issue
1 parent 1b223d6 commit 9902c31

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

fileutils_iface_test.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ import (
2626
func TestFileUtilsIface(t *testing.T) {
2727
t.Run("deprecated functions should work", func(t *testing.T) {
2828
t.Run("with test package path", func(t *testing.T) {
29-
const tgt = "testpath"
30-
31-
td, err := os.MkdirTemp("", tgt) //nolint:usetesting // as t.TempDir in testing not yet fully working (on windows)
32-
require.NoError(t, err)
33-
t.Cleanup(func() {
34-
_ = os.RemoveAll(td)
35-
})
29+
td := t.TempDir()
3630

3731
realPath := filepath.Join(td, "src", "foo", "bar")
3832
require.NoError(t, os.MkdirAll(realPath, os.ModePerm))

0 commit comments

Comments
 (0)