We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 649e04c commit 76ebc4bCopy full SHA for 76ebc4b
test/parallel/test-worker-resource-limits.js
@@ -35,9 +35,10 @@ if (!process.env.HAS_STARTED_WORKER) {
35
assert.deepStrictEqual(resourceLimits, testResourceLimits);
36
const array = [];
37
while (true) {
38
- // Leave 10 % wiggle room here.
+ // Leave 10% wiggle room here, and 20% on debug builds.
39
+ const wiggleRoom = common.buildType === 'Release' ? 1.1 : 1.2;
40
const usedMB = v8.getHeapStatistics().used_heap_size / 1024 / 1024;
- assert(usedMB < resourceLimits.maxOldGenerationSizeMb * 1.1);
41
+ assert(usedMB < resourceLimits.maxOldGenerationSizeMb * wiggleRoom);
42
43
let seenSpaces = 0;
44
for (const { space_name, space_size } of v8.getHeapSpaceStatistics()) {
0 commit comments