Initialize memory in new DoAppendIfFits unit test (#8324)
This commit is contained in:
parent
b7fc2f1e5c
commit
7827535ffd
|
@ -35,6 +35,8 @@ TEST_CASE("/Atomic/DoAppendIfFits") {
|
|||
{
|
||||
Value existingValue = makeString(CLIENT_KNOBS->VALUE_SIZE_LIMIT - 1, arena);
|
||||
Value otherOperand = makeString(2, arena);
|
||||
deterministicRandom()->randomBytes(mutateString(existingValue), existingValue.size());
|
||||
deterministicRandom()->randomBytes(mutateString(otherOperand), otherOperand.size());
|
||||
// Appended values cannot fit in result, should return existingValue
|
||||
auto result = doAppendIfFits(existingValue, otherOperand, arena);
|
||||
ASSERT(compare(existingValue, result) == 0);
|
||||
|
|
Loading…
Reference in New Issue