diff options
author | 2020-07-02 15:10:36 +0800 | |
---|---|---|
committer | 2020-07-02 09:10:36 +0200 | |
commit | 011686b344aa144cbd338161fca8c8079772638c (patch) | |
tree | 4b0fa197096330b23b5af99adcc9df22bcf0e428 /test/auto_test.go | |
parent | 41f9142dd29a09bba93aa85a018c55ecfbd51496 (diff) | |
download | coredns-011686b344aa144cbd338161fca8c8079772638c.tar.gz coredns-011686b344aa144cbd338161fca8c8079772638c.tar.zst coredns-011686b344aa144cbd338161fca8c8079772638c.zip |
Cleanup tempfiles (#3986)
* cleanup tempfiles for auto_test
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
* cleanup tempfiles for metrics_test
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Diffstat (limited to 'test/auto_test.go')
-rw-r--r-- | test/auto_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |