Skip to content

Commit

Permalink
[chore] Fix error message format from mapstructure (#11427)
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored Oct 12, 2024
1 parent 084a241 commit 2162296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confmap/internal/e2e/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ func TestStrictTypeCasting(t *testing.T) {
{
value: "t",
targetField: TargetFieldBool,
unmarshalErr: "'field' expected type 'bool', got unconvertible type 'string', value: 't'",
unmarshalErr: "'field' expected type '%!s(bool=false)', got unconvertible type '\"t\"', value: '\"t\"'",
},
{
value: "23",
targetField: TargetFieldBool,
unmarshalErr: "'field' expected type 'bool', got unconvertible type 'int', value: '23'",
unmarshalErr: "'field' expected type '%!s(bool=false)', got unconvertible type '23', value: '23'",
},
{
value: "{\"field\": 123}",
Expand Down

0 comments on commit 2162296

Please sign in to comment.