diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-12-18 15:28:43 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-12-18 15:28:43 +0100 |
commit | 9edc58a03a5427237fc094b95e7b248b00acbe1a (patch) | |
tree | b8f6d16cc73a1c62e3bfa717c5c0d9c14c274985 /hugolib/site_test.go | |
parent | 8cea4288028ea49906a9163fb7e862d77fa4f123 (diff) |
Fix failing template related tests in Go 1.6
Fixes #1470
Diffstat (limited to 'hugolib/site_test.go')
-rw-r--r-- | hugolib/site_test.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/hugolib/site_test.go b/hugolib/site_test.go index 1c0729c09..1fe05031a 100644 --- a/hugolib/site_test.go +++ b/hugolib/site_test.go @@ -146,10 +146,11 @@ func TestRenderThing(t *testing.T) { {SIMPLE_PAGE_RFC3339_DATE, TEMPLATE_DATE, "2013-05-17 16:59:30 +0000 UTC"}, } - s := new(Site) - templatePrep(s) - for i, test := range tests { + + s := new(Site) + templatePrep(s) + p, err := NewPageFrom(strings.NewReader(test.content), "content/a/file.md") p.Convert() if err != nil { @@ -192,10 +193,12 @@ func TestRenderThingOrDefault(t *testing.T) { } hugofs.DestinationFS = new(afero.MemMapFs) - s := &Site{} - templatePrep(s) for i, test := range tests { + + s := &Site{} + templatePrep(s) + p, err := NewPageFrom(strings.NewReader(PAGE_SIMPLE_TITLE), "content/a/file.md") if err != nil { t.Fatalf("Error parsing buffer: %s", err) |