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 { diff --git a/test/metrics_test.go b/test/metrics_test.go index 6f5477c5d..6641d615c 100644 --- a/test/metrics_test.go +++ b/test/metrics_test.go @@ -73,6 +73,7 @@ func TestMetricsAuto(t *testing.T) { if err != nil { t.Fatal(err) } + defer os.RemoveAll(tmpdir) corefile := `org:0 { auto {