From 669e7249bcff642b2c123dc94c8b5e72b755232c Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 12 Nov 2026 20:39:33 -0800 Subject: [PATCH] test(cloud): malformed cursor test reads the personal route --- cloud/apps/sandbox-control/test/secret-events.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud/apps/sandbox-control/test/secret-events.test.ts b/cloud/apps/sandbox-control/test/secret-events.test.ts index 7b81665b674..8fa2ffc4e18 100644 --- a/cloud/apps/sandbox-control/test/secret-events.test.ts +++ b/cloud/apps/sandbox-control/test/secret-events.test.ts @@ -191,9 +191,9 @@ describe('activity window and pagination', () => { }) it('ignores a malformed cursor or limit rather than failing', async () => { - const { admin, put, activity } = await setup() - await put('org', 'TEAM_VAR', VALUES[1]!, admin) - const res = await activity(admin, 'view=team&cursor=%27%20OR%201%3D1&limit=-5') + const { member, put, activity } = await setup() + await put('personal', 'MY_VAR', VALUES[1]!, member) + const res = await activity(member, 'view=personal&cursor=%27%20OR%201%3D1&limit=-5') expect(res.status).toBe(200) expect(res.body.events).toHaveLength(1) })