coredns/test/file_test.go
Miek Gieben 4f0b36e57e
Extend presubmit to covert test and request (#1846)
Fix the casing *and* fix use of context as we were still referencing
the non-std lib context - no wondering how this could have worked...
2018-06-01 15:12:49 +01:00

12 lines
193 B
Go

package test
import "testing"
func TestTempFile(t *testing.T) {
t.Parallel()
_, f, e := TempFile(".", "test")
if e != nil {
t.Fatalf("Failed to create temp file: %s", e)
}
defer f()
}