mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +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 {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user