Remove duplicated TempFile testsuit (#2508)

This commit is contained in:
Xuanwo 2019-01-28 15:25:14 +08:00 committed by Miek Gieben
parent f300fa9bb2
commit ffe79b026e
8 changed files with 25 additions and 31 deletions

View file

@ -1,10 +1,14 @@
package test
import "testing"
import (
"testing"
"github.com/coredns/coredns/plugin/test"
)
func TestTempFile(t *testing.T) {
t.Parallel()
_, f, e := TempFile(".", "test")
_, f, e := test.TempFile(".", "test")
if e != nil {
t.Fatalf("Failed to create temp file: %s", e)
}