diff options
Diffstat (limited to 'local_test.go')
-rw-r--r-- | local_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/local_test.go b/local_test.go index a848b27..3df3bbe 100644 --- a/local_test.go +++ b/local_test.go @@ -19,7 +19,10 @@ func TestServer(t *testing.T) { if runtime.GOOS == "android" { t.Skip("skipping on android; can't run go tool") } - mux, err := newServer(false, "/static", blog.Config{ + oldStatic := *staticPath + *staticPath = "/static" + defer func() { *staticPath = oldStatic }() + mux, err := newServer(false, blog.Config{ TemplatePath: "./template", }) if err != nil { |