mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 06:41:09 +01:00
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:
parent
41f9142dd2
commit
011686b344
@ -16,6 +16,7 @@ func TestAuto(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
defer os.RemoveAll(tmpdir)
|
||||||
|
|
||||||
corefile := `org:0 {
|
corefile := `org:0 {
|
||||||
auto {
|
auto {
|
||||||
@ -74,6 +75,7 @@ func TestAutoNonExistentZone(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
defer os.RemoveAll(tmpdir)
|
||||||
|
|
||||||
corefile := `.:0 {
|
corefile := `.:0 {
|
||||||
auto {
|
auto {
|
||||||
@ -112,6 +114,7 @@ func TestAutoAXFR(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
defer os.RemoveAll(tmpdir)
|
||||||
|
|
||||||
corefile := `org:0 {
|
corefile := `org:0 {
|
||||||
auto {
|
auto {
|
||||||
|
|||||||
@ -73,6 +73,7 @@ func TestMetricsAuto(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
defer os.RemoveAll(tmpdir)
|
||||||
|
|
||||||
corefile := `org:0 {
|
corefile := `org:0 {
|
||||||
auto {
|
auto {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user