mirror of https://github.com/perkeep/perkeep.git
website: fix test working dir
Change-Id: If92dc43b4ee3e5fd2ac9c6490d242d3dacff74b1
This commit is contained in:
parent
a6ad4d88e9
commit
87a8e7ad54
|
@ -21,6 +21,7 @@ import (
|
|||
"net/http/httptest"
|
||||
"net/url"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
@ -95,6 +96,7 @@ func TestDocHandler(t *testing.T) {
|
|||
if err != nil {
|
||||
t.Fatalf("Failed to getwd: %v", err)
|
||||
}
|
||||
*root = filepath.Join(*root, "..")
|
||||
readTemplates()
|
||||
|
||||
tests := []struct {
|
||||
|
|
Loading…
Reference in New Issue