Skip to content

Commit

Permalink
Merge pull request #14248 from ahrtr/update_TestRemoveMatchFile
Browse files Browse the repository at this point in the history
No need to manually remove tmp directory created by t.TempDir()
  • Loading branch information
ahrtr authored Jul 21, 2022
2 parents 4c2aab9 + f6cfd46 commit 6d27a42
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/pkg/fileutil/fileutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ func TestDirPermission(t *testing.T) {

func TestRemoveMatchFile(t *testing.T) {
tmpdir := t.TempDir()
defer os.RemoveAll(tmpdir)
f, err := os.CreateTemp(tmpdir, "tmp")
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 6d27a42

Please sign in to comment.