Make sure garbage bytes are different
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
cb3a19f47a
commit
659a39931a
|
@ -192,8 +192,8 @@ TEST(History, GarbageMemoryHash) {
|
||||||
HistoryNode node0Garbage = getLeafN(1);
|
HistoryNode node0Garbage = getLeafN(1);
|
||||||
HistoryNode node1Garbage = getLeafN(2);
|
HistoryNode node1Garbage = getLeafN(2);
|
||||||
|
|
||||||
EXPECT_NE(node0.bytes, node0Garbage.bytes);
|
node0Garbage.bytes[NODE_SERIALIZED_LENGTH - 1] = node0.bytes[NODE_SERIALIZED_LENGTH - 1] ^ 1;
|
||||||
EXPECT_NE(node1.bytes, node1Garbage.bytes);
|
node1Garbage.bytes[NODE_SERIALIZED_LENGTH - 1] = node1.bytes[NODE_SERIALIZED_LENGTH - 1] ^ 1;
|
||||||
|
|
||||||
viewGarbage.PushHistoryNode(consensusBranchId, node0Garbage);
|
viewGarbage.PushHistoryNode(consensusBranchId, node0Garbage);
|
||||||
viewGarbage.PushHistoryNode(consensusBranchId, node1Garbage);
|
viewGarbage.PushHistoryNode(consensusBranchId, node1Garbage);
|
||||||
|
|
Loading…
Reference in New Issue