diff --git a/test/erratic_autopath_test.go b/test/erratic_autopath_test.go index 4ccd5b136..ef7729815 100644 --- a/test/erratic_autopath_test.go +++ b/test/erratic_autopath_test.go @@ -14,7 +14,7 @@ func setupProxyTargetCoreDNS(t *testing.T, fn func(string)) { if err != nil { t.Fatal(err) } - defer os.Remove(tmpdir) + defer os.RemoveAll(tmpdir) content := ` example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 1 3600 3600 3600 3600