Closed noseworthy closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
f5c7e27
) 91.22% compared to head (b84c82a
) 91.24%. Report is 3 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:tada: This PR is included in version 9.1.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
The current implementation of
getPort()
relies on usingDate.now()
to get the first port to try to launch mongo on, even when theEXP_NET0LISTEN
flag is set. This causes a couple issues:Date
module is mocked, it can result ingetFreePort()
returning the same first port every time.In order to better randomize the initial port selection so that port conflicts can be avoided, instead of using
Date.now()
for an initial seed, usecrypto.randomInt()
which should provide more randomness and hopefully avoid some of these race conditions.Related Issues
827