Skip to content

Commit

Permalink
tests: use random port in listen test
Browse files Browse the repository at this point in the history
closes #5162
  • Loading branch information
rluvaton authored and dougwilson committed Jun 4, 2023
1 parent 24e4a25 commit 2a00da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/app.listen.js
Expand Up @@ -6,7 +6,7 @@ describe('app.listen()', function(){
it('should wrap with an HTTP server', function(done){
var app = express();

var server = app.listen(9999, function(){
var server = app.listen(0, function () {
server.close(done)
});
})
Expand Down

0 comments on commit 2a00da2

Please sign in to comment.