ref: a96ad5c21188622944472d64ceaf6116a5e55588
parent: 159bed34c3a850d58d08a36ddc40372ed96af2db
author: Bjørn Erik Pedersen <[email protected]>
date: Tue Apr 17 06:28:32 EDT 2018
hugolib: Fix broken test
--- a/hugolib/page_test.go
+++ b/hugolib/page_test.go
@@ -448,7 +448,7 @@
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)
}
}