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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

fix/infra-says-order → main 0 commits

  • Merged. fix/infra-says-order was merged into main as a9db0ee.

Review

Sign in to review this change.
1 file changed +4 −0
test/talk-infra-says.test.ts +4
@@ -122,6 +122,10 @@ beforeAll(async () => {
122122 machine(name, "retired");
123123 retired = app.bus.append({ kind: "pinned.retired", actorId: alice.id, payload: { name, withData: true } }).createdAt;
124124 }
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]);
125129 // A machine whose row was cleared: an event names it, no row does.
126130 app.bus.append({ kind: "pinned.cleared", actorId: alice.id, payload: { name: "gone1" } });
127131 });

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs