Fix data race in non-renderable pages

Fixes #1601
This commit is contained in:
Bjørn Erik Pedersen
2015-12-18 09:54:46 +01:00
parent 0c01fef321
commit 8cea428802
3 changed files with 28 additions and 18 deletions

View File

@@ -158,7 +158,7 @@ func TestRenderThing(t *testing.T) {
templateName := fmt.Sprintf("foobar%d", i)
err = s.addTemplate(templateName, test.template)
if err != nil {
t.Fatalf("Unable to add template")
t.Fatalf("Unable to add template: %s", err)
}
p.Content = template.HTML(p.Content)
@@ -203,7 +203,7 @@ func TestRenderThingOrDefault(t *testing.T) {
templateName := fmt.Sprintf("default%d", i)
err = s.addTemplate(templateName, test.template)
if err != nil {
t.Fatalf("Unable to add template")
t.Fatalf("Unable to add template: %s", err)
}
var err2 error