diff --git a/test/fixtures/cases/limit.js b/test/fixtures/cases/limit.js index 193df3d..48e8f0a 100644 --- a/test/fixtures/cases/limit.js +++ b/test/fixtures/cases/limit.js @@ -1,5 +1,6 @@ 'use strict'; +const os = require('os'); const path = require('path'); const { filterTestCaseByPlatform } = require('../utils'); @@ -11,6 +12,7 @@ exports = module.exports = function () { title: 'limit hook is valid', subTitle: 'auto increase heap limit is ok.', jspath: exitFatalErrorScriptPath, + skip: os.platform() === 'win32' } ]; diff --git a/test/limit.test.js b/test/limit.test.js index 71a75dc..293d963 100644 --- a/test/limit.test.js +++ b/test/limit.test.js @@ -57,7 +57,7 @@ for (const cse of cases) { }); for (let i = 1; i < 3; i++) { - it(`${cse.subTitle} with ${i} times heap increase factor`, function () { + (cse.skip ? it.skip : it)(`${cse.subTitle} with ${i} times heap increase factor`, function () { const increaseLog = `current_heap_limit is ${(initialHeapLimit + (i - 1) * autoIncreaseHeapLimitSize) * MB}, ` + `initial_heap_limit is ${initialHeapLimit * MB}, ` + `auto_incr_heap_limit_size is ${autoIncreaseHeapLimitSize}, `