Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Autotest returns EMFILE Error - v.1.13.1 #292

ergdev opened this Issue Feb 26, 2014 · 1 comment


None yet
2 participants

ergdev commented Feb 26, 2014

I have a test spec that contains multiple asnyc tests for black box integration testing. Test spec runs fines on its own but will not run with --autotest and --watch.

I receive the following error:

        throw er; // Unhandled 'error' event
Error: EMFILE: Too many opened files.
    at Gaze._handleError (/usr/lib/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js:463:31)
    at Gaze._watchDir (/usr/lib/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js:354:17)
    at /usr/lib/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js:380:11
    at iterate (/usr/lib/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js:99:5)
    at forEachSeries (/usr/lib/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js:113:3)
    at Gaze._initWatched (/usr/lib/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js:377:3)
    at /usr/lib/node_modules/jasmine-node/node_modules/gaze/lib/gaze.js:240:11
    at Object.next (/usr/lib/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/lib/fileset.js:41:14)
    at Fileset.EventEmitter.emit (events.js:95:17)
    at Fileset.Glob._processEmitQueue (/usr/lib/node_modules/jasmine-node/node_modules/gaze/node_modules/fileset/node_modules/glob/glob.js:313:10)

I am using node v0.10.24 and jasmine-node v1.13.1


tebriel commented Mar 6, 2014

You need to up the allowed amount of files on your system using ulimit. Here's the fix in OS X http://superuser.com/questions/261023/how-to-change-default-ulimit-values-in-mac-os-x-10-6, google ulimit and your OS for whatever os you're having the issue with.

@tebriel tebriel closed this Mar 6, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment