From 4a1c502ee3d367a78eae12a893d4164e999c1e45 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 23 Mar 2017 10:56:53 -0600 Subject: [PATCH] Create special folder for tests Former-commit-id: ae51c6c248baaf996f899e77e760aba1f0c161cf [formerly 7bf4f38602dd6b24f7888d88f18ca6e9cac9b9a3] [formerly 0ef00a42149f4e7724fde45c2a252e9ec7c550f5 [formerly d20e40ca85e6a06d0aba698624e3433e7c5c612a]] Former-commit-id: 69b97c02f08943de02a1ae58c8291dcae6c56db8 [formerly d229497f2b2159c144939054ad21f57ce380c47e] Former-commit-id: 3951a8763debafee5f9ddf812fd022c9b5ce2d10 --- page_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/page_test.go b/page_test.go index bf767b1..8b05832 100755 --- a/page_test.go +++ b/page_test.go @@ -8,7 +8,9 @@ import ( ) func TestGeneral(t *testing.T) { - defer os.RemoveAll("data") + pathToData = "testdata" + os.MkdirAll(pathToData, 0755) + defer os.RemoveAll(pathToData) p := Open("testpage") err := p.Update("**bold**") if err != nil {