From e7b24ff5e3f87ab548ce2e268b8995551f3db0f9 Mon Sep 17 00:00:00 2001 From: Stefan Stojanovic Date: Fri, 14 Jul 2023 11:20:02 +0200 Subject: [PATCH] test: fix flaky test-string-decode.js on x86 Removes flakiness from the mentioned test due to the x86 memory limit PR-URL: https://github.com/nodejs/node/pull/48750 Reviewed-By: Luigi Pinca Reviewed-By: Debadree Chatterjee Reviewed-By: Yagiz Nizipli --- test/parallel/test-string-decoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-string-decoder.js b/test/parallel/test-string-decoder.js index 02f0a3a718bdec..dd535fe5035fc5 100644 --- a/test/parallel/test-string-decoder.js +++ b/test/parallel/test-string-decoder.js @@ -203,7 +203,7 @@ assert.throws( if (common.enoughTestMem) { assert.throws( - () => new StringDecoder().write(Buffer.alloc(0x1fffffe8 + 1).fill('a')), + () => new StringDecoder().write(Buffer.alloc((process.arch === 'ia32' ? 0x18ffffe8 : 0x1fffffe8) + 1).fill('a')), { code: 'ERR_STRING_TOO_LONG', }