cleanup tempfiles for erratic_autopath_test (#4080)

Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
This commit is contained in:
Zhou Hao
2020-08-20 21:11:56 +08:00
committed by GitHub
parent abeba46029
commit f6262eb2f6

View File

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