From 2379d28d9b9472827b9c0f3f1acb4a8a58ef0f55 Mon Sep 17 00:00:00 2001 From: bchanot Date: Wed, 28 Oct 2026 20:42:52 +0100 Subject: [PATCH] test(supabase): V1-2.1 number-walk timing on a small base document --- packages/supabase/tests/sandbox/sheets-perf.sandbox.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/supabase/tests/sandbox/sheets-perf.sandbox.ts b/packages/supabase/tests/sandbox/sheets-perf.sandbox.ts index d774927a..30bd391b 100644 --- a/packages/supabase/tests/sandbox/sheets-perf.sandbox.ts +++ b/packages/supabase/tests/sandbox/sheets-perf.sandbox.ts @@ -215,7 +215,9 @@ describe('timing at the caps (ยง15)', () => { // document of many small numbers within the cap saves within the budget, one // just over the cap answers the closed code within it, never a statement timeout. it('measures a document of many small numbers within the budget', async () => { - const base = capsDocument([null, null, null, null] as unknown as string[], 8, 0) + // A small valid base (empty collections), so the numbers carry the size. + const base = { ...capsDocument([null, null, null, null] as unknown as string[], 8, 0), + references: [], categories: [], views: [], annotations: [], finding_zones: [] } const sheet = ok(await rpc('create_official_sheet', { slug: `perf-n-${Date.now().toString(36)}`, document: base }, E.aal2)) as string const draft = await sql(`select id from public.anatomical_sheet_versions where sheet_id = '${sheet}' and status = 'draft'`) const revision = Number(await sql(`select revision from public.anatomical_sheet_versions where id = '${draft}'`))