summaryrefslogtreecommitdiffstats
path: root/hugolib/site_url_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-09 14:05:31 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-09 14:37:58 +0100
commit973393c99e3e6927e1c8ef27b0cd8f22eae3f4e4 (patch)
tree4e2635062426b690c46f8cbf42c164df6154e757 /hugolib/site_url_test.go
parent9896cd0030da75bf6acab14dad0a7f78472ceff9 (diff)
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6 Fixes #1879
Diffstat (limited to 'hugolib/site_url_test.go')
-rw-r--r--hugolib/site_url_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/site_url_test.go b/hugolib/site_url_test.go
index f25b5dfaf..33843ebcf 100644
--- a/hugolib/site_url_test.go
+++ b/hugolib/site_url_test.go
@@ -103,8 +103,7 @@ func TestPageCount(t *testing.T) {
Source: &source.InMemorySource{ByteSource: urlFakeSource},
}
s.initializeSiteInfo()
- s.prepTemplates()
- must(s.addTemplate("indexes/blue.html", INDEX_TEMPLATE))
+ s.prepTemplates("indexes/blue.html", INDEX_TEMPLATE)
if err := s.CreatePages(); err != nil {
t.Errorf("Unable to create pages: %s", err)