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}'`))