From 46e0d1b395e88f1966a5f90259ef469b81d0725f Mon Sep 17 00:00:00 2001 From: Raz Luvaton <16746759+rluvaton@users.noreply.github.com> Date: Tue, 11 Apr 2023 15:31:47 +0300 Subject: [PATCH] tests: use random port in listen test closes #5162 --- test/app.listen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/app.listen.js b/test/app.listen.js index 0eec582e69..5b150063b9 100644 --- a/test/app.listen.js +++ b/test/app.listen.js @@ -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) }); })