tests: remove test with hard-coded port

parent d6927361
......@@ -110,22 +110,11 @@ describe('app', function(){
}
// create a non-connect server
var server = http.createServer(run).listen(5556, function(){
http.get({
host: 'localhost',
port: 5556,
path: '/'
}, function(res){
var buf = '';
res.setEncoding('utf8');
res.on('data', function(s){ buf += s });
res.on('end', function(){
buf.should.eql('Ok');
server.close();
done();
});
});
});
var server = http.createServer(run);
request(server)
.get('/')
.expect(200, 'Ok', done);
});
it('should escape the 500 response body', function(done){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment