Interface change! Return TooOld after 2e9 versions

Event if setOldestVersion wasn't called
This commit is contained in:
2024-06-30 15:25:44 -07:00
parent 8e3eacb54f
commit a68ad5dd17
4 changed files with 34 additions and 4 deletions

View File

@@ -77,6 +77,13 @@ def test_internal_version_zero():
cs.check(read(0xFFFFFFF1, b"\x00", b"\xff"))
def test_two_billion_versions():
with DebugConflictSet() as cs:
cs.addWrites(int(2e9) + 1)
cs.check(read(0, b"\x00", b"\xff"))
cs.check(read(1, b"\x00", b"\xff"))
def test_decrease_capacity():
# make a Node48, then a Node256
for count in (17, 49):