Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1uz372eiuv is past its budget: trevato/forge: "a landed pull moves the forks, like the push it amounts to > the untouched fork follows; the one with i… #13203
Check · Review · Land · Live done — Landed and live in production.
torque/forge:torque/13192-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork
1 file
changed +8
−4
test/following.test.ts +8 −4
| @@ -1006,10 +1006,14 @@ describe("a landed pull moves the forks, like the push it amounts to", () => { | ||
| 1006 | 1006 | const landed = await tip(parent); |
| 1007 | 1007 | expect(landed).not.toBe(before); |
| 1008 | 1008 | await until(async () => (await tip(untouched)) === landed); |
| 1009 | const followed = listEvents(app.db, { repoId: untouched.id, limit: 20 }) | |
| 1010 | .filter((e) => e.kind === "push") | |
| 1011 | .map((e) => e.payload["followed"]); | |
| 1012 | expect(followed).toContain("alice/engine"); | |
| 1009 | // The ref moves before the push event is written: wait for the event | |
| 1010 | // rather than reading it the instant the tip changes. | |
| 1011 | const followedOf = () => | |
| 1012 | listEvents(app.db, { repoId: untouched.id, limit: 20 }) | |
| 1013 | .filter((e) => e.kind === "push") | |
| 1014 | .map((e) => e.payload["followed"]); | |
| 1015 | await until(() => followedOf().includes("alice/engine")); | |
| 1016 | expect(followedOf()).toContain("alice/engine"); | |
| 1013 | 1017 | |
| 1014 | 1018 | await until(() => |
| 1015 | 1019 | listEvents(app.db, { repoId: worked.id, limit: 20 }).some( |
new above
offline