Skip to content

test: skip in test-buffer-tostring-rangeerror on allocation failure#58415

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:fix-tostring-rangeerror
May 23, 2025
Merged

test: skip in test-buffer-tostring-rangeerror on allocation failure#58415
nodejs-github-bot merged 1 commit intonodejs:mainfrom
joyeecheung:fix-tostring-rangeerror

Conversation

@joyeecheung
Copy link
Copy Markdown
Member

If the buffer allocation fails due to insufficient memory, there is no point continue testing toString().

#58142 is not sufficient to skip the test because require('os').totalmem() > 1.75GB is not sufficient to safe guard from allocation failure. It's better to directly skip on a case-by-case basis.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backported-to-v20.x PRs backported to the v20.x-staging branch. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants