Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:34km66mqlc is past its budget: trevato/forge: "an entry still waiting for its answer stays out of the fold, and splits it" failed on 6 pulls in the la… #13240
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/13239-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 2 commits fork
1 file
changed +6
−1
test/thread-window.test.ts +6 −1
| @@ -198,8 +198,13 @@ test("an entry still waiting for its answer stays out of the fold, and splits it | ||
| 198 | 198 | for (let i = 0; i < 6; i++) { |
| 199 | 199 | const added = addComment(f.app, f.owner, repo, opened.value, `split comment ${i}`); |
| 200 | 200 | if (!added.ok) throw new Error(String(added.error)); |
| 201 | made.push(added.value.createdAt); | |
| 201 | // Timestamps are milliseconds: a fast machine stamps two comments alike and the | |
| 202 | // entry would sort after its tie, so each comment is stamped a second apart. | |
| 203 | const at = new Date(Date.UTC(2030, 0, 1, 0, 0, i)).toISOString(); | |
| 204 | f.app.db.query("UPDATE comment SET created_at = ?1 WHERE id = ?2").run(at, added.value.id); | |
| 205 | made.push(at); | |
| 202 | 206 | } |
| 207 | expect(new Set(made).size).toBe(6); | |
| 203 | 208 | const ctx = { app: f.app, url: new URL(`${f.base}${path}`) } as unknown as Ctx; |
| 204 | 209 | const ask = (open: boolean): Entry => ({ |
| 205 | 210 | at: made[2]!, |
new above
offline