Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fix flaky `--exit` integration timeout by avoiding a hard-coded port (#6364)

Copilot430901f69cfd
diff --git a/test/integration/fixtures/exit.fixture.cjs b/test/integration/fixtures/exit.fixture.cjs
index 0a5e5eb9..b13588b9 100644
--- a/test/integration/fixtures/exit.fixture.cjs
+++ b/test/integration/fixtures/exit.fixture.cjs
@@ -4,5 +4,5 @@ var net = require('net');
it('should hang when --no-exit used', function (done) {
var server = net.createServer();
- server.listen(55554, done);
+ server.listen(0, done);
});