aboutsummaryrefslogtreecommitdiff
path: root/test/file_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_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_test.go')
-rw-r--r--test/file_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/file_test.go b/test/file_test.go
index 891e9d903..babee27f4 100644
--- a/test/file_test.go
+++ b/test/file_test.go
@@ -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)
}