From: Bjørn Erik Pedersen Date: Sun, 11 Mar 2018 20:17:41 +0000 (+0100) Subject: hugolib: Adjust GitInfo author date test X-Git-Tag: v0.38~37 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f12ad7d56;p=brevno-suite%2Fhugo hugolib: Adjust GitInfo author date test Now that we have a commit to assert against. See #4495 --- diff --git a/hugolib/page_test.go b/hugolib/page_test.go index 875c5bdd..d862dc8e 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -933,7 +933,9 @@ func TestPageWithLastmodFromGitInfo(t *testing.T) { s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{SkipRender: true}) assrt.Len(s.RegularPages, 1) - assrt.Equal("2018-02-28", s.RegularPages[0].Lastmod.Format("2006-01-02")) + + // 2018-03-11 is the Git author date for testsite/content/first-post.md + assrt.Equal("2018-03-11", s.RegularPages[0].Lastmod.Format("2006-01-02")) } func TestPageWithFrontMatterConfig(t *testing.T) {