aboutsummaryrefslogtreecommitdiff
path: root/test/file_cname_proxy_test.go
diff options
context:
space:
mode:
authorGravatar Xuanwo <xuanwo.cn@gmail.com> 2019-01-28 15:25:14 +0800
committerGravatar Miek Gieben <miek@miek.nl> 2019-01-28 07:25:14 +0000
commitffe79b026e3dc3b3a1eb1f95224b570d7764e0b6 (patch)
treeef597b0b2d96381d7bebb00edf85d4f3a80cc0e1 /test/file_cname_proxy_test.go
parentf300fa9bb25f6693bd3d9a314f054c39717250c6 (diff)
downloadcoredns-ffe79b026e3dc3b3a1eb1f95224b570d7764e0b6.tar.gz
coredns-ffe79b026e3dc3b3a1eb1f95224b570d7764e0b6.tar.zst
coredns-ffe79b026e3dc3b3a1eb1f95224b570d7764e0b6.zip
Remove duplicated TempFile testsuit (#2508)
Diffstat (limited to 'test/file_cname_proxy_test.go')
-rw-r--r--test/file_cname_proxy_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/file_cname_proxy_test.go b/test/file_cname_proxy_test.go
index e6f41ee97..5fb13622b 100644
--- a/test/file_cname_proxy_test.go
+++ b/test/file_cname_proxy_test.go
@@ -3,13 +3,15 @@ package test
import (
"testing"
+ "github.com/coredns/coredns/plugin/test"
+
"github.com/miekg/dns"
)
func TestZoneExternalCNAMELookupWithoutProxy(t *testing.T) {
t.Parallel()
- name, rm, err := TempFile(".", exampleOrg)
+ name, rm, err := test.TempFile(".", exampleOrg)
if err != nil {
t.Fatalf("Failed to create zone: %s", err)
}
@@ -41,7 +43,7 @@ func TestZoneExternalCNAMELookupWithoutProxy(t *testing.T) {
func TestZoneExternalCNAMELookupWithProxy(t *testing.T) {
t.Parallel()
- name, rm, err := TempFile(".", exampleOrg)
+ name, rm, err := test.TempFile(".", exampleOrg)
if err != nil {
t.Fatalf("Failed to create zone: %s", err)
}