Clear key after matching on it

This commit is contained in:
2025-08-14 16:49:20 -04:00
parent 52381467f7
commit ee5d14c4cd
3 changed files with 67 additions and 28 deletions

View File

@@ -195,8 +195,8 @@ TEST_CASE("CommitRequest precondition and operation validation") {
{
"type": "range_read",
"version": 12340,
"begin": "",
"end": ""
"begin": "dGVzdA==",
"end": "dGVzdFo="
}
]
})";
@@ -206,6 +206,9 @@ TEST_CASE("CommitRequest precondition and operation validation") {
INFO("Parse result: " << parse_result);
INFO("Parse complete: " << request.is_parse_complete());
INFO("Parse error: " << request.has_parse_error());
const char *error_msg = request.get_parse_error();
INFO("Parse error message: " << (error_msg ? std::string(error_msg)
: "none"));
INFO("Leader ID: '" << request.leader_id() << "'");
INFO("Read version: " << request.read_version());