test: fix test-buffer-tostring-range on allocation failure · nodejs/node@4629b18 · GitHub
Skip to content

Commit 4629b18

Browse files
joyeecheungtargos
authored andcommitted
test: fix test-buffer-tostring-range on allocation failure
If the test cannot allocate a buffer over 4GB, there is no point continue testing toString() on it. This also split the test case to a different file for clarity and reduce interference with other cases. PR-URL: #58416 Fixes: #56726 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Stefan Stojanovic <stefan.stojanovic@janeasystems.com>
1 parent 4c445a8 commit 4629b18

2 files changed

Lines changed: 21 additions & 9 deletions

File tree

Lines changed: 20 additions & 0 deletions

test/parallel/test-buffer-tostring-range.js

Lines changed: 1 addition & 9 deletions

0 commit comments

Comments
 (0)