test(supabase): V1-2.1 number-walk timing on a small base document
This commit is contained in:
1 parent
f9e40ba6aa
commit
2379d28d9b
1 file changed
+3
-1
@@ -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}'`))
|
||||
|
||||
Reference in new issue
Block a user