diff --git a/symlink/fs_test.go b/symlink/fs_test.go index d85fd6d..cc0d82d 100644 --- a/symlink/fs_test.go +++ b/symlink/fs_test.go @@ -46,6 +46,7 @@ func TestFollowSymLinkUnderLinkedDir(t *testing.T) { if err != nil { t.Fatal(err) } + defer os.RemoveAll(dir) os.Mkdir(filepath.Join(dir, "realdir"), 0700) os.Symlink("realdir", filepath.Join(dir, "linkdir"))