mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-17 21:19:33 +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 {
|
if err == nil {
|
||||||
t.Fatalf("err is nil. Expected: %s", expected)
|
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)
|
t.Errorf("err.Error() returned: '%s'. Expected: '%s'", err.Error(), expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue