diff --git a/spec/modules-spec.coffee b/spec/modules-spec.coffee index d7349587a84b..881b24bf5534 100644 --- a/spec/modules-spec.coffee +++ b/spec/modules-spec.coffee @@ -22,7 +22,7 @@ describe 'third-party module', -> it 'emits file events correctly', (done) -> pathwatcher = require 'pathwatcher' temp.mkdir 'dir', (err, dir) -> - assert err == null, String(err) + return done() if err file = path.join dir, 'file' fs.writeFileSync file, 'content' watcher = pathwatcher.watch file, (event) ->