Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix some issues with node 0.6

  • Loading branch information...
commit 3acea5388a1cf4d3df40969a72920846bb7b2afc 1 parent f481cfb
@vesln vesln authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/supertest.js
View
8 test/supertest.js
@@ -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();
});
});
})
Please sign in to comment.
Something went wrong with that request. Please try again.