From 4599e055e5b23ff5d4d8336da60827293a0133b5 Mon Sep 17 00:00:00 2001 From: andreimarcu Date: Mon, 28 Sep 2015 12:35:11 -0400 Subject: [PATCH] Portability --- server_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server_test.go b/server_test.go index c95e680..0529448 100644 --- a/server_test.go +++ b/server_test.go @@ -4,17 +4,16 @@ import ( "net/http" "net/http/httptest" "os" + "path" "strings" "testing" "github.com/zenazn/goji" ) -var a = 0 - func TestSetup(t *testing.T) { Config.siteURL = "http://linx.example.org/" - Config.filesDir = "/tmp/" + randomString(10) + Config.filesDir = path.Join(os.TempDir(), randomString(10)) Config.metaDir = Config.filesDir + "_meta" Config.noLogs = true Config.siteName = "linx"