From: Bjørn Erik Pedersen Date: Tue, 17 Apr 2018 08:28:32 +0000 (+0200) Subject: hugolib: Fix broken test X-Git-Tag: v0.40~24 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a96ad5c21188622944472d64ceaf6116a5e55588;p=brevno-suite%2Fhugo hugolib: Fix broken test --- diff --git a/hugolib/page_test.go b/hugolib/page_test.go index 308bf31c..f47f4944 100644 --- a/hugolib/page_test.go +++ b/hugolib/page_test.go @@ -448,7 +448,7 @@ func checkError(t *testing.T, err error, expected string) { if err == nil { t.Fatalf("err is nil. Expected: %s", expected) } - if err.Error() != expected { + if !strings.Contains(err.Error(), expected) { t.Errorf("err.Error() returned: '%s'. Expected: '%s'", err.Error(), expected) } }