Merge pull request #7779 from hickeyma/fix/test-check-msg

refactor(pkg/lint/test): Improve the checking error message in unit test
pull/7795/head
Martin Hickey 4 years ago committed by GitHub
commit a322199c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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