File tree Expand file tree Collapse file tree
browser_tests/tests/customNodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ import { fitToViewInstant } from '@e2e/fixtures/utils/fitToView'
5454const PLAN_SETUP_MS = 120_000
5555const SWEEP_MS_PER_PAIR = 40
5656const ISOLATED_MS_PER_PAIR = PLAN_SETUP_MS
57+ const PAIRS_PER_BATCH = 100
5758// Same discipline for the drag pass, whose edge list grows with every
5859// connectivity pack: one drag per edge per renderer. This test carried a flat
5960// 120s cap over today's 6 packs (16 drags) until the since-removed cloud
@@ -445,7 +446,16 @@ async function runPairsInPage(
445446 page : Page ,
446447 pairs : PlannedPair [ ]
447448) : Promise < PairResult [ ] > {
448- return await evaluatePairs ( page , pairs )
449+ const results : PairResult [ ] = [ ]
450+ for ( let start = 0 ; start < pairs . length ; start += PAIRS_PER_BATCH ) {
451+ const batch = pairs . slice ( start , start + PAIRS_PER_BATCH )
452+ const firstKey = `${ batch [ 0 ] . producer . nodeType } .${ batch [ 0 ] . producer . slotName } `
453+ console . log (
454+ `connectivity shared batch: ${ start + 1 } -${ start + batch . length } /${ pairs . length } starting at ${ firstKey } `
455+ )
456+ results . push ( ...( await evaluatePairs ( page , batch ) ) )
457+ }
458+ return results
449459}
450460
451461function evaluatePairs (
You can’t perform that action at this time.
0 commit comments