<= in modified_after_begin for unit tests

This commit is contained in:
Damien Elmes 2020-05-15 14:24:59 +10:00
parent 46c363d4aa
commit 7c5980a941

View File

@ -174,7 +174,7 @@ class _Collection:
# Until we can move away from long-running transactions, the Python
# code needs to know if transaction should be committed, so we need
# to check if the backend updated the modification time.
return self.db.last_begin_at < self.mod
return self.db.last_begin_at <= self.mod
def save(
self, name: Optional[str] = None, mod: Optional[int] = None, trx: bool = True