From 011686b344aa144cbd338161fca8c8079772638c Mon Sep 17 00:00:00 2001 From: Li Zhijian Date: Thu, 2 Jul 2020 15:10:36 +0800 Subject: Cleanup tempfiles (#3986) * cleanup tempfiles for auto_test Signed-off-by: Li Zhijian * cleanup tempfiles for metrics_test Signed-off-by: Li Zhijian --- test/auto_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/auto_test.go') diff --git a/test/auto_test.go b/test/auto_test.go index f5cfa4069..f7e5faecd 100644 --- a/test/auto_test.go +++ b/test/auto_test.go @@ -16,6 +16,7 @@ func TestAuto(t *testing.T) { if err != nil { t.Fatal(err) } + defer os.RemoveAll(tmpdir) corefile := `org:0 { auto { @@ -74,6 +75,7 @@ func TestAutoNonExistentZone(t *testing.T) { if err != nil { t.Fatal(err) } + defer os.RemoveAll(tmpdir) corefile := `.:0 { auto { @@ -112,6 +114,7 @@ func TestAutoAXFR(t *testing.T) { if err != nil { t.Fatal(err) } + defer os.RemoveAll(tmpdir) corefile := `org:0 { auto { -- cgit v1.2.3