diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2022-05-05 14:37:01 +0300 |
---|---|---|
committer | RafaelGSS <rafael.nunu@hotmail.com> | 2022-05-10 15:13:18 +0300 |
commit | a20310d171aea18accf93ade3d60234944ba6c54 (patch) | |
tree | 8ad6f6cdf65bab60d99ad3cf661e79e113d63b2a /test | |
parent | 2df1624f804ca5113655575a0546f41a58dc8e02 (diff) |
bootstrap: use a context snapshotted with primordials in workers
PR-URL: https://github.com/nodejs/node/pull/42867
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-worker-stack-overflow-stack-size.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-worker-stack-overflow-stack-size.js b/test/parallel/test-worker-stack-overflow-stack-size.js index a079624847b..481ff55100a 100644 --- a/test/parallel/test-worker-stack-overflow-stack-size.js +++ b/test/parallel/test-worker-stack-overflow-stack-size.js @@ -23,7 +23,6 @@ async function runWorker(options = {}) { }); const [ error ] = await once(worker, 'error'); - if (!options.skipErrorCheck) { common.expectsError({ constructor: RangeError, @@ -56,7 +55,9 @@ async function runWorker(options = {}) { } // Test that various low stack sizes result in an 'error' event. - for (const stackSizeMb of [ 0.001, 0.01, 0.1, 0.2, 0.3, 0.5 ]) { + // Currently the stack size needs to be at least 0.3MB for the worker to be + // bootstrapped properly. + for (const stackSizeMb of [ 0.3, 0.5, 1 ]) { await runWorker({ resourceLimits: { stackSizeMb }, skipErrorCheck: true }); } })().then(common.mustCall()); |