Unverified Commit 5b899d69 authored by Harshitha KP's avatar Harshitha KP Committed by Anna Henningsen
Browse files

test: add Worker initialization failure test case

Cover the scenario fixed through
https://github.com/nodejs/node/pull/31621
Unfortunately there is no easy way to test this, in a
cross-platform manner. So the approach is:
 - open a child process with ulimit restriction on file descriptors
 - in the child process, start few workers - more than the fd limit
 - make sure some workers fail, with the expected error type.
 - skip the test in windows, as there is no ulimit there.

Refs: https://github.com/nodejs/node/pull/31621

PR-URL: https://github.com/nodejs/node/pull/31929


Reviewed-By: default avatarDenys Otrishko <shishugi@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent 0ddfd0fc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment