From 11f8cbb9cf4c58b7906a08d5ebc184e847b06f7d Mon Sep 17 00:00:00 2001 From: Martin Hickey Date: Wed, 18 Mar 2020 12:22:06 +0000 Subject: [PATCH] Improve error message to check in unit test Signed-off-by: Martin Hickey Signed-off-by: Matheus Hunsche --- pkg/lint/lint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/lint/lint_test.go b/pkg/lint/lint_test.go index 2a982d088..b51939d76 100644 --- a/pkg/lint/lint_test.go +++ b/pkg/lint/lint_test.go @@ -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) } }