From 15281c0ef10abb267389ef19461a3b53533d0cb2 Mon Sep 17 00:00:00 2001 From: Levy Tate <78818969+iLevyTate@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:31:48 -0500 Subject: [PATCH] test(notebook): give the many-parts speed check room for a busy CI runner The check failed on macOS at 1,505 ms against a 1,500 ms limit, on main after the 5.4.0 merge. It guards against a quadratic join of 300,000 cell parts, not exact speed, so the limit is now 5 s. --- test/extractors.notebookExtractor.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/extractors.notebookExtractor.test.js b/test/extractors.notebookExtractor.test.js index 8beab13..26fe79d 100644 --- a/test/extractors.notebookExtractor.test.js +++ b/test/extractors.notebookExtractor.test.js @@ -405,7 +405,9 @@ describe('extractTextFromIpynb adversarial inputs', () => { ); const started = Date.now(); const out = await extractTextFromIpynb(file, { maxChars: 2 * 1024 * 1024 }); - expect(Date.now() - started).toBeLessThan(1500); + // The bound guards against a quadratic join of the parts, not exact speed: + // 1.5 s failed at 1,505 ms on a shared macOS CI runner. + expect(Date.now() - started).toBeLessThan(5000); expect(out).toContain('[code]\na\na\n'); expect(out).toContain('[output]\na\na\n'); // The 600 KB output is capped per cell; the 600 KB source is not.