diff --git a/services/meta/service_test.go b/services/meta/service_test.go index 505b8a660a..dd7c1eb9a2 100644 --- a/services/meta/service_test.go +++ b/services/meta/service_test.go @@ -1231,7 +1231,7 @@ func testTempDir(skip int) string { } _, prefix := path.Split(runtime.FuncForPC(pc).Name()) // Make a temp dir prefixed with calling function's name. - dir, err := ioutil.TempDir("/tmp", prefix) + dir, err := ioutil.TempDir(os.TempDir(), prefix) if err != nil { panic(err) }