Allow write version to jump by more than 2e9

This commit is contained in:
2024-07-03 09:07:09 -07:00
parent e59fee39c7
commit 3e6be6bd83
3 changed files with 35 additions and 22 deletions

View File

@@ -84,6 +84,14 @@ def test_two_billion_versions():
cs.check(read(1, b"\x00", b"\xff"))
def test_positive_bytes():
with DebugConflictSet() as cs:
cs.addWrites(1, write(b"hello"))
assert cs.getBytes() > 0
cs.addWrites(1 + 2**32)
assert cs.getBytes() > 0
def test_decrease_capacity():
# make a Node48, then a Node256
for count in (17, 49):