theintern / intern

A next-generation code testing stack for JavaScript.
https://theintern.io/
Other
4.36k stars 310 forks source link

Try to bind to different ports if the configured port is already in use #1180

Closed afrischknecht closed 3 years ago

afrischknecht commented 3 years ago

Just using a statically configured port is not good enough in some scenarios, e.g. when trying to run multiple intern instances on the same machine. This PR makes intern try incremental port numbers up to a configured limit in an attempt to discover an unbound port.

afrischknecht commented 3 years ago

Sorry, was meant for my fork of the repo.