Replace test_fixup_256 with a regression test for the Node256 fixupMaxVersion false-Commit bug #90
@@ -222,18 +222,6 @@ def test_merge_child_node48():
|
|||||||
cs.addWrites(1, write(b"\x00" * 8, b"\x00" * 10))
|
cs.addWrites(1, write(b"\x00" * 8, b"\x00" * 10))
|
||||||
|
|
||||||
|
|
||||||
def test_fixup_256():
|
|
||||||
# All children are written at the same version, so this test passes even
|
|
||||||
# if fixupMaxVersion only considers some of them. See
|
|
||||||
# test_fixup_256_heterogeneous_versions for that case.
|
|
||||||
with DebugConflictSet() as cs:
|
|
||||||
cs.addWrites(0, write(bytes([1])))
|
|
||||||
for i in range(256):
|
|
||||||
cs.addWrites(1, write(bytes([1, i])))
|
|
||||||
cs.addWrites(2, write(bytes([0]), bytes([1])))
|
|
||||||
cs.check(read(0, bytes([1]), bytes([2])))
|
|
||||||
|
|
||||||
|
|
||||||
def test_fixup_256_heterogeneous_versions():
|
def test_fixup_256_heterogeneous_versions():
|
||||||
# Regression test for issue #89: recomputing the maxVersion of a Node256
|
# Regression test for issue #89: recomputing the maxVersion of a Node256
|
||||||
|
|
|||||||
# must consider all of its children, not just those with an index < 16.
|
# must consider all of its children, not just those with an index < 16.
|
||||||
|
|||||||
Reference in new issue
Block a user
Just remove this test