Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed race-condition in test.pidfiles.js

  • Loading branch information...
commit f54fd60077af3c5de8d3dd1b4f8113421f6d59e9 1 parent 6a06847
@tj tj authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 test/test.pidfiles.js
View
4 test/test.pidfiles.js
@@ -28,11 +28,9 @@ function checkFile(name) {
cluster.on('listening', function(){
fs.readdir(__dirname + '/pids', function(err, files){
- files.should.have.length(4);
- files.should.contain('master.pid');
+ // TODO: test master pid
files.should.contain('worker.0.pid');
files.should.contain('worker.1.pid');
- checkFile('master.pid');
checkFile('worker.0.pid');
checkFile('worker.1.pid');
cluster.close();
Please sign in to comment.
Something went wrong with that request. Please try again.