diff options
Diffstat (limited to 'hugolib/page_time_integration_test.go')
-rw-r--r-- | hugolib/page_time_integration_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hugolib/page_time_integration_test.go b/hugolib/page_time_integration_test.go index 4544d83e7..dde1587dd 100644 --- a/hugolib/page_time_integration_test.go +++ b/hugolib/page_time_integration_test.go @@ -89,13 +89,17 @@ Page With Date HugoLong` ) func TestDegenerateDateFrontMatter(t *testing.T) { - p, _ := pageTestSite.NewPageFrom(strings.NewReader(pageWithInvalidDate), "page/with/invalid/date") + t.Parallel() + s := newTestSite(t) + p, _ := s.NewPageFrom(strings.NewReader(pageWithInvalidDate), "page/with/invalid/date") if p.Date != *new(time.Time) { t.Fatalf("Date should be set to time.Time zero value. Got: %s", p.Date) } } func TestParsingDateInFrontMatter(t *testing.T) { + t.Parallel() + s := newTestSite(t) tests := []struct { buf string dt string @@ -131,7 +135,7 @@ func TestParsingDateInFrontMatter(t *testing.T) { if e != nil { t.Fatalf("Unable to parse date time (RFC3339) for running the test: %s", e) } - p, err := pageTestSite.NewPageFrom(strings.NewReader(test.buf), "page/with/date") + p, err := s.NewPageFrom(strings.NewReader(test.buf), "page/with/date") if err != nil { t.Fatalf("Expected to be able to parse page.") } |