Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/extractors.notebookExtractor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading