Skip to content

Commit 45de22f

Browse files
committed
Patch the clock where the claim reads it
Make the causal-order test control the service module's imported clock so its timestamp tie is deterministic.
1 parent 2ed1ce8 commit 45de22f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_render_projection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ def test_claims_and_reports_share_one_canonical_update_feed(
816816
# Force the same timestamp: causality, rather than wall-clock tie-breaking, must
817817
# order the two source records.
818818
with monkeypatch.context() as patch:
819-
patch.setattr(events_model, "now_iso", lambda: report_event["ts"])
819+
patch.setattr(service_model, "now_iso", lambda: report_event["ts"])
820820
with service_model.PageTransaction(d) as transaction:
821821
transaction.set_status(
822822
"working",

0 commit comments

Comments
 (0)