Merge pull request #14248 from ahrtr/update_TestRemoveMatchFile

No need to manually remove tmp directory created by t.TempDir()
dependabot/go_modules/go.uber.org/atomic-1.10.0
Benjamin Wang 2022-07-21 17:31:43 +08:00 committed by GitHub
commit 6d27a42b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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)