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...
12 lines
193 B
Go
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()
|
|
}
|