hugolib: Fix broken test

This commit is contained in:
Bjørn Erik Pedersen 2018-04-17 10:28:32 +02:00
parent 159bed34c3
commit a96ad5c211
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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)
}
}