Merge pull request #172 from Oza94/fix-child-process-tests

fix random fails on tests that use child process
This commit is contained in:
Jarrett Cruger 2015-09-17 18:46:57 -07:00
commit 394286cd16

View file

@ -62,7 +62,7 @@ vows.describe('nconf/hierarchy').addBatch({
data += d; data += d;
}); });
child.on('exit', function () { child.on('close', function () {
fs.readFile(configFile, 'utf8', that.callback.bind(null, null, data)); fs.readFile(configFile, 'utf8', that.callback.bind(null, null, data));
}); });
}, },
@ -90,7 +90,7 @@ vows.describe('nconf/hierarchy').addBatch({
data += d; data += d;
}); });
child.on('exit', function() { child.on('close', function() {
that.callback(null, data); that.callback(null, data);
}); });
}, },