tests: use random port in listen test

closes #5162
This commit is contained in:
Raz Luvaton 2023-04-11 15:31:47 +03:00 committed by Douglas Christopher Wilson
parent 24e4a2570d
commit 2a00da2067

View File

@ -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)
});
})