Permalink
Browse files

Fix some issues with node 0.6

  • Loading branch information...
vesln committed Oct 15, 2012
1 parent f481cfb commit 3acea5388a1cf4d3df40969a72920846bb7b2afc
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/supertest.js
View
@@ -35,7 +35,7 @@ describe('request(app)', function(){
.end(function(err, res){
res.should.have.status(200);
res.text.should.equal('hey');
- server.close(done)
+ done();
});
});
})
@@ -47,13 +47,13 @@ describe('request(app)', function(){
res.send('hey');
});
- var server = app.listen(4000, function(){
- request('http://localhost:4000')
+ var server = app.listen(4001, function(){
+ request('http://localhost:4001')
.get('/')
.end(function(err, res){
res.should.have.status(200);
res.text.should.equal('hey');
- server.close(done)
+ done();
});
});
})

0 comments on commit 3acea53

Please sign in to comment.