From 2b5c0571fc2947ad2da59e44f981bffc93e92c7f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 28 Oct 2026 18:21:07 +0100 Subject: [PATCH] Give the 33-million-character line test a timeout past Bun's 5 s default --- src/markdown/emit/adf-to-markdown.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/markdown/emit/adf-to-markdown.test.ts b/src/markdown/emit/adf-to-markdown.test.ts index ac81806..92446b0 100644 --- a/src/markdown/emit/adf-to-markdown.test.ts +++ b/src/markdown/emit/adf-to-markdown.test.ts @@ -73,7 +73,8 @@ test('refuses text past V8\'s longest string', () => { assert.equal(pastTheBound(result), true) }) -test('escapes more characters in a line than V8\'s Set holds', () => { +// Bun stops a test after 5 s by default, and this one writes and reads back a line of 33 million characters. +test('escapes more characters in a line than V8\'s Set holds', { timeout: 60000 }, () => { const stars = '*'.repeat(2 ** 24 + 1) assert.equal(markdown(adfToLosslessMarkdown(document(paragraph({ text: stars, type: 'text' })))), `${'\\*'.repeat(2 ** 24 + 1)}\n`) })