diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-16 20:32:38 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-22 09:57:03 +0100 |
commit | 99d11386a7de544f044f30782310175cf2df4004 (patch) | |
tree | f81904beffe31eec6ad8c4cdad481f7f07e92bf0 /hugolib/page_permalink_test.go | |
parent | 62e9e7e6ba3eee386c95d0420386132ad8acaa7e (diff) |
node to page: Fix the Page copy()
By embeding the init sync.Once var in a pointer so we can reset it when we copy the page.
Updates #2297
Diffstat (limited to 'hugolib/page_permalink_test.go')
-rw-r--r-- | hugolib/page_permalink_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hugolib/page_permalink_test.go b/hugolib/page_permalink_test.go index 341639529..007f9eefc 100644 --- a/hugolib/page_permalink_test.go +++ b/hugolib/page_permalink_test.go @@ -66,7 +66,8 @@ func TestPermalink(t *testing.T) { info := newSiteInfo(siteBuilderCfg{baseURL: string(test.base), language: helpers.NewDefaultLanguage()}) p := &Page{ - Kind: KindPage, + pageInit: &pageInit{}, + Kind: KindPage, URLPath: URLPath{ Section: "z", URL: test.url, |