Remove duplicated TempFile testsuit (#2508)
This commit is contained in:
parent
f300fa9bb2
commit
ffe79b026e
8 changed files with 25 additions and 31 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue