Merge pull request #3535 from MaXinjian/tmpfile

Cleanup tempfiles introduced in confirmeddir_test.go
This commit is contained in:
Donny Xia
2021-02-05 12:57:05 -08:00
committed by GitHub

View File

@@ -4,6 +4,7 @@
package filesys_test
import (
"os"
"path/filepath"
"testing"
@@ -98,6 +99,7 @@ func TestNewTempConfirmDir(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
defer os.RemoveAll(string(tmp))
delinked, err := filepath.EvalSymlinks(string(tmp))
if err != nil {