From e735f41be61d9f3f268891c1cd415ca2f90dae0e Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 16 Nov 2026 00:57:33 -0800 Subject: [PATCH] test(cloud): GIT-ACTOR read-count test's synthetic ids can no longer collide with the real one (flaky) --- cloud/apps/sandbox-control/test/member-git.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/apps/sandbox-control/test/member-git.test.ts b/cloud/apps/sandbox-control/test/member-git.test.ts index bf36f109e56..365ac39dabb 100644 --- a/cloud/apps/sandbox-control/test/member-git.test.ts +++ b/cloud/apps/sandbox-control/test/member-git.test.ts @@ -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' }))