Skip to content

Commit

Permalink
starting fakes3 tor un tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dyashkir committed Feb 28, 2014
1 parent 6faa2cc commit d910bae
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,26 @@ describe('amazon-s3-url-signer', function(){
});

//start fake s3
/*console.dir('-r test/s3_files -p 1234'.split(' '))
fakes = spawn('fakes3', '-r test/s3_files -p 1234'.split(' '))

fakes.stdout.on('data', function (data) {
console.log('stdout: ' + data);
console.log(''+ data);
});
fakes.on('exit', function (code) {
console.log('child process exited with code ' + code);
});
*/
done()
fakes.stderr.on('data', function (data) {
var log_line = data + '';
console.log(log_line);
if (log_line.match(/WEBrick::HTTPServer#start/)){
done();
}
});

})

after(function(done){
//fakes.kill();
fakes.kill('SIGKILL');//normal sigterm does not work on fakes
done();
})

Expand Down

0 comments on commit d910bae

Please sign in to comment.