test(cloud): GIT-ACTOR read-count test's synthetic ids can no longer collide with the real one (flaky)

This commit is contained in:
Neil
2026-11-16 00:57:33 -08:00
parent c122522e53
commit e735f41be6
@@ -240,7 +240,7 @@ describe('GIT-ACTOR: githubActing and you on the workspace view (list and detail
}) as D1Database
const row = (await getSandbox(db, t.id))!
// Four rows of the same owner (ids differ): a list of any size.
const results = [row, ...[1, 2, 3].map((n) => ({ ...row, id: `${row.id.slice(0, -1)}${n}` }))]
const results = [row, ...[1, 2, 3].map((n) => ({ ...row, id: `${row.id}-copy${n}` }))]
const options = { enabled: () => true, sharedMaxMs: 60 * 60_000 }
const views = await githubActingViews(counting, results as never, 'alice', t.h.now(), options)
expect([...views.values()].map((v) => v.githubActing)).toEqual(Array(4).fill({ actingAs: 'member', userId: 'alice', login: 'alice-gh' }))