MCPcopy Create free account
hub / github.com/tox-dev/filelock / commit_after_pause

Function commit_after_pause

tests/soft/read_write/test_participant.py:216–218  ·  view source on GitHub ↗
(log: GenerationLog, successor: Snapshot)

Source from the content-addressed store, hash-verified

214 real_commit = GenerationLog.commit
215
216 def commit_after_pause(log: GenerationLog, successor: Snapshot) -> bool:
217 clock[0] = 10.0
218 return real_commit(log, successor)
219
220 mocker.patch.object(GenerationLog, "commit", autospec=True, side_effect=commit_after_pause)
221 assert reader.advance()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected