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>
This commit is contained in:
Li Zhijian 2020-07-02 15:10:36 +08:00 committed by GitHub
parent 41f9142dd2
commit 011686b344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -73,6 +73,7 @@ func TestMetricsAuto(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(tmpdir)
corefile := `org:0 {
auto {