mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 10:52:06 +00:00
hugolib: Fix broken test
This commit is contained in:
parent
159bed34c3
commit
a96ad5c211
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue