Improve error message to check in unit test

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
pull/7779/head
Martin Hickey 4 years ago
parent ca931b472b
commit 9a0e7d8a31

@ -93,7 +93,7 @@ func TestBadValues(t *testing.T) {
if len(m) < 1 {
t.Fatalf("All didn't fail with expected errors, got %#v", m)
}
if !strings.Contains(m[0].Err.Error(), "cannot unmarshal") {
if !strings.Contains(m[0].Err.Error(), "unable to parse YAML") {
t.Errorf("All didn't have the error for invalid key format: %s", m[0].Err)
}
}

Loading…
Cancel
Save