Stanislav Vodetskyi
02/07/2024, 12:12 AM[]byte
fields in grpc requests/responses? I'm currently converting it to string, smth like:
"bytes": "matching(type, '" + string(bytes) + "')",
is this the right way to go?Stanislav Vodetskyi
02/07/2024, 12:14 AMresponse
field, so I was wondering if could be related to converting bytes back and forth to/from stringrholshausen
02/07/2024, 12:14 AMStanislav Vodetskyi
02/07/2024, 12:16 AM0xc0
and 0x86
, maybe others too. Both are always replaced with the same set of bytes: 0xef, 0xbf, 0xbd
and then the test fails because you assert to receive 0xc0
and receive 0xef, 0xbf, 0xbd
instead:
expected: []byte{0xc0}
actual : []byte{0xef, 0xbf, 0xbd}
I wonder if it has something to do with trimming the string or empty characters or something, but they get replaced even when they're in the middle of the sequence.
idk if there are some special bytes?Stanislav Vodetskyi
02/07/2024, 12:16 AMrholshausen
02/07/2024, 12:17 AMrholshausen
02/07/2024, 12:17 AM