From 5e3a10ffc598dbad684f2e3ca931641f3d8f5f50 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Sat, 24 Jun 2017 17:45:49 -0700 Subject: [PATCH] dont run fsevents tests in CI --- test/test.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 33468c6..43d8909 100755 --- a/test/test.js +++ b/test/test.js @@ -7,6 +7,7 @@ var rimraf = require('rimraf'); var path = require('path'); var assert = require('assert'); var tmp = require('tmp'); +var os = require('os'); tmp.setGracefulCleanup(); var jo = path.join.bind(path); @@ -17,9 +18,13 @@ describe('sane in polling mode', function() { describe('sane in node mode', function() { harness.call(this, {}); }); -describe('sane in fsevents mode', function() { - harness.call(this, { fsevents: true }); -}); + +if (os.platform() === 'darwin') { + describe('sane in fsevents mode', function() { + harness.call(this, { fsevents: true }); + }); +} + describe('sane in watchman mode', function() { harness.call(this, { watchman: true }); });