Fix test-only bug in script test

Previously conflict_set.py only worked for checking one read conflict
per call
This commit is contained in:
2024-06-25 19:20:19 -07:00
parent e8ac78cce6
commit 2c0adf4a8b
3 changed files with 4 additions and 3 deletions

View File

@@ -115,7 +115,9 @@ class ConflictSet:
def check(self, *reads: ReadRange) -> list[Result]:
r = (ctypes.c_int * len(reads))()
self._lib.ConflictSet_check(self.p, *reads, r, 1)
self._lib.ConflictSet_check(
self.p, (ReadRange * len(reads))(*reads), r, len(reads)
)
return [Result(x) for x in r]
def setOldestVersion(self, version: int) -> None: