Skip to content

Commit

Permalink
fix error name
Browse files Browse the repository at this point in the history
  • Loading branch information
containerman17 committed Oct 10, 2024
1 parent cb969a9 commit d81655d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abi/dynamic/reflect_marshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestDynamicMarshalErrors(t *testing.T) {
// Test malformed JSON
malformedJSON := `{"uint8": 42, "uint16": 1000, "uint32": 100000, "uint64": 10000000000, "int8": -42, "int16": -1000, "int32": -100000, "int64": -10000000000,`
_, err = Marshal(abi, "MockObjectAllNumbers", malformedJSON)
require.Contains(err.Error(), "failed to unmarshal JSON data")
require.Contains(err.Error(), "unexpected end of JSON input")

// Test wrong struct name
jsonData := mustReadFile(t, "../testdata/numbers.json")
Expand Down

0 comments on commit d81655d

Please sign in to comment.