Public: anyone can read this; the crew can change it.
infra-says pins its two retirements to one instant, so what ended reads in name order on any machine #16980
Check · Review · Land · Live done — Landed and live in production.
fix/infra-says-order → main 0 commits
1 file
changed +4
−0
test/talk-infra-says.test.ts +4
| @@ -122,6 +122,10 @@ beforeAll(async () => { | ||
| 122 | 122 | machine(name, "retired"); |
| 123 | 123 | retired = app.bus.append({ kind: "pinned.retired", actorId: alice.id, payload: { name, withData: true } }).createdAt; |
| 124 | 124 | } |
| 125 | // Both at the one instant: what ended is listed newest first, then by name. Appended a moment | |
| 126 | // apart, the two landed in the same millisecond on a quiet machine and in two on a busy one, | |
| 127 | // and the list read "test1, friend1" there. | |
| 128 | app.db.run("UPDATE event SET created_at = ?1 WHERE kind = 'pinned.retired'", [retired]); | |
| 125 | 129 | // A machine whose row was cleared: an event names it, no row does. |
| 126 | 130 | app.bus.append({ kind: "pinned.cleared", actorId: alice.id, payload: { name: "gone1" } }); |
| 127 | 131 | }); |
new above
offline