Skip to content

Commit

Permalink
ignore windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1991 committed Jan 10, 2023
1 parent dbba157 commit f62d0ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/fixtures/cases/limit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const os = require('os');
const path = require('path');
const { filterTestCaseByPlatform } = require('../utils');

Expand All @@ -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'
}
];

Expand Down
2 changes: 1 addition & 1 deletion test/limit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}, `
Expand Down

0 comments on commit f62d0ae

Please sign in to comment.