Skip to content

Commit 2c75b9e

Browse files
StefanStojanovicruyadorno
authored andcommitted
test: fix flaky test-string-decode.js on x86
Removes flakiness from the mentioned test due to the x86 memory limit PR-URL: #48750 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 7aaecce commit 2c75b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-string-decoder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ assert.throws(
203203

204204
if (common.enoughTestMem) {
205205
assert.throws(
206-
() => new StringDecoder().write(Buffer.alloc(0x1fffffe8 + 1).fill('a')),
206+
() => new StringDecoder().write(Buffer.alloc((process.arch === 'ia32' ? 0x18ffffe8 : 0x1fffffe8) + 1).fill('a')),
207207
{
208208
code: 'ERR_STRING_TOO_LONG',
209209
}

0 commit comments

Comments
 (0)