Skip to content

Commit 57e9b89

Browse files
committed
1 parent df073cd commit 57e9b89

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

test/async-hooks/test-fseventwrap.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const fs = require('fs');
1010
if (!common.isMainThread)
1111
common.skip('Worker bootstrapping works differently -> different async IDs');
1212

13+
if (common.isFSSensitiveCI)
14+
common.skip('Skip FS intensive test on sensitive CI.');
15+
1316
const hooks = initHooks();
1417

1518
hooks.enable();

test/common/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ Platform check for Advanced Interactive eXecutive (AIX).
189189

190190
Attempts to 'kill' `pid`
191191

192+
### isFSSensitiveCI
193+
* [<boolean>]
194+
195+
Check for CI environments that are FS sensitive (e.g. Travis)
196+
192197
### isFreeBSD
193198
* [<boolean>]
194199

test/common/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,3 +804,9 @@ exports.runWithInvalidFD = function(func) {
804804

805805
exports.printSkipMessage('Could not generate an invalid fd');
806806
};
807+
808+
Object.defineProperty(exports, 'isFSSensitiveCI', {
809+
get: function() {
810+
return process.env['TRAVIS'] === 'true';
811+
}
812+
});

test/parallel/test-fs-watch-close-when-destroyed.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const tmpdir = require('../common/tmpdir');
88
const fs = require('fs');
99
const path = require('path');
1010

11+
if (common.isFSSensitiveCI)
12+
common.skip('Skip FS intensive test on sensitive CI.');
13+
1114
tmpdir.refresh();
1215
const root = path.join(tmpdir.path, 'watched-directory');
1316
fs.mkdirSync(root);

0 commit comments

Comments
 (0)