diff --git a/test/fixtures/workload/grow-worker-and-set-near-heap-limit.js b/test/fixtures/workload/grow-worker-and-set-near-heap-limit.js index 598088bcf90a78..b7a379e24b4d1c 100644 --- a/test/fixtures/workload/grow-worker-and-set-near-heap-limit.js +++ b/test/fixtures/workload/grow-worker-and-set-near-heap-limit.js @@ -9,7 +9,10 @@ new Worker(path.join(__dirname, 'grow-and-set-near-heap-limit.js'), { }, resourceLimits: { maxOldGenerationSizeMb: - parseInt(process.env.TEST_OLD_SPACE_SIZE) || 20 - } + parseInt(process.env.TEST_OLD_SPACE_SIZE) || 20, + ...(process.env.TEST_YOUNG_SPACE_SIZE !== undefined && { + maxYoungGenerationSizeMb: parseInt(process.env.TEST_YOUNG_SPACE_SIZE), + }), + }, }); diff --git a/test/fixtures/workload/grow-worker.js b/test/fixtures/workload/grow-worker.js index 092d8f27751fc2..c80a5cd7b91128 100644 --- a/test/fixtures/workload/grow-worker.js +++ b/test/fixtures/workload/grow-worker.js @@ -9,6 +9,9 @@ new Worker(path.join(__dirname, 'grow.js'), { ], resourceLimits: { maxOldGenerationSizeMb: - parseInt(process.env.TEST_OLD_SPACE_SIZE) || 20 - } + parseInt(process.env.TEST_OLD_SPACE_SIZE) || 20, + ...(process.env.TEST_YOUNG_SPACE_SIZE !== undefined && { + maxYoungGenerationSizeMb: parseInt(process.env.TEST_YOUNG_SPACE_SIZE), + }), + }, }); diff --git a/test/parallel/test-heapsnapshot-near-heap-limit-by-api-in-worker.js b/test/parallel/test-heapsnapshot-near-heap-limit-by-api-in-worker.js index ac55933a47122b..b7f4946c060cff 100644 --- a/test/parallel/test-heapsnapshot-near-heap-limit-by-api-in-worker.js +++ b/test/parallel/test-heapsnapshot-near-heap-limit-by-api-in-worker.js @@ -22,6 +22,7 @@ const env = { env: { TEST_SNAPSHOTS: 1, TEST_OLD_SPACE_SIZE: 50, + TEST_YOUNG_SPACE_SIZE: 16, ...env } }); diff --git a/test/parallel/test-heapsnapshot-near-heap-limit-worker.js b/test/parallel/test-heapsnapshot-near-heap-limit-worker.js index 46744cbd44d82c..2701499c53bfbd 100644 --- a/test/parallel/test-heapsnapshot-near-heap-limit-worker.js +++ b/test/parallel/test-heapsnapshot-near-heap-limit-worker.js @@ -20,6 +20,7 @@ const env = { env: { TEST_SNAPSHOTS: 1, TEST_OLD_SPACE_SIZE: 50, + TEST_YOUNG_SPACE_SIZE: 16, ...env } });