<= in modified_after_begin for unit tests
This commit is contained in:
parent
46c363d4aa
commit
7c5980a941
@ -174,7 +174,7 @@ class _Collection:
|
|||||||
# Until we can move away from long-running transactions, the Python
|
# Until we can move away from long-running transactions, the Python
|
||||||
# code needs to know if transaction should be committed, so we need
|
# code needs to know if transaction should be committed, so we need
|
||||||
# to check if the backend updated the modification time.
|
# 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(
|
def save(
|
||||||
self, name: Optional[str] = None, mod: Optional[int] = None, trx: bool = True
|
self, name: Optional[str] = None, mod: Optional[int] = None, trx: bool = True
|
||||||
|
Loading…
Reference in New Issue
Block a user