mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
hugolib: Fix broken test
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user