We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
constarray=[];
37
while(true){
38
-// Leave 10 % wiggle room here.
+// Leave 10% wiggle room here, and 20% on debug builds.
39
+constwiggleRoom=common.buildType==='Release' ? 1.1 : 1.2;
40
constusedMB=v8.getHeapStatistics().used_heap_size/1024/1024;
-assert(usedMB<resourceLimits.maxOldGenerationSizeMb*1.1);
41
+assert(usedMB<resourceLimits.maxOldGenerationSizeMb*wiggleRoom);
42
43
letseenSpaces=0;
44
for(const{ space_name, space_size }ofv8.getHeapSpaceStatistics()){
0 commit comments