diff options
Diffstat (limited to 'test/file.go')
-rw-r--r-- | test/file.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/file.go b/test/file.go index b6068a32b..626224cac 100644 --- a/test/file.go +++ b/test/file.go @@ -3,11 +3,10 @@ package test import ( "io/ioutil" "os" - "testing" ) // TempFile will create a temporary file on disk and returns the name and a cleanup function to remove it later. -func TempFile(t *testing.T, dir, content string) (string, func(), error) { +func TempFile(dir, content string) (string, func(), error) { f, err := ioutil.TempFile(dir, "go-test-tmpfile") if err != nil { return "", nil, err |