diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-09-09 21:32:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-15 00:42:05 +0000 |
commit | 58828b0ce9556ee9cb38c484d1226663a0dcd993 (patch) | |
tree | dfea448799d9bd4328114199a9767dd18d045be3 /src/mongo/rpc/op_msg_test.cpp | |
parent | 22a77301a5b63b9bb7ef6dd73eabb4865c63a921 (diff) | |
download | mongo-58828b0ce9556ee9cb38c484d1226663a0dcd993.tar.gz |
SERVER-43909 clarify and repair util/hex.h API
- hexblob namespace
- Throwy hexblob::decode (nee fromHex)
- StringData overloads of hex codec ops
- add unsignedHex<T> and zeroPaddedHex<T>
Diffstat (limited to 'src/mongo/rpc/op_msg_test.cpp')
-rw-r--r-- | src/mongo/rpc/op_msg_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/rpc/op_msg_test.cpp b/src/mongo/rpc/op_msg_test.cpp index 362d5fb5ef9..b22c661a551 100644 --- a/src/mongo/rpc/op_msg_test.cpp +++ b/src/mongo/rpc/op_msg_test.cpp @@ -656,15 +656,15 @@ void testSerializer(const Message& fromSerializer, OpMsgBytes&& expected) { LOGV2(22636, "Mismatch after {commonLength} bytes.", "commonLength"_attr = commonLength); LOGV2(22637, "Common prefix: {hexdump_gotSD_rawData_commonLength}", - "hexdump_gotSD_rawData_commonLength"_attr = hexdump(gotSD.rawData(), commonLength)); + "hexdump_gotSD_rawData_commonLength"_attr = hexdump(gotSD.substr(0, commonLength))); LOGV2(22638, "Got suffix : {hexdump_gotSD_rawData_commonLength_gotSD_size_commonLength}", "hexdump_gotSD_rawData_commonLength_gotSD_size_commonLength"_attr = - hexdump(gotSD.rawData() + commonLength, gotSD.size() - commonLength)); + hexdump(gotSD.substr(commonLength))); LOGV2(22639, "Expected suffix: {hexdump_expectedSD_rawData_commonLength_expectedSD_size_commonLength}", "hexdump_expectedSD_rawData_commonLength_expectedSD_size_commonLength"_attr = - hexdump(expectedSD.rawData() + commonLength, expectedSD.size() - commonLength)); + hexdump(expectedSD.substr(commonLength))); FAIL("Serialization didn't match expected data. See above for details."); } |