diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index 5aa7cc0e..6b4fa439 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -68,7 +68,8 @@ var resourceConfJSON1 = `{ func TestParseError(t *testing.T) { _, err := Parse([]byte(resourceConfInvalid1)) - assert.EqualError(t, err, "Decoding config failed: error unmarshaling JSON: json: cannot unmarshal string into Go value of type config.Configuration") + expectedErr := "Decoding config failed: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type config.Configuration" + assert.EqualError(t, err, expectedErr) } func TestParseYaml(t *testing.T) {