Open deprov447 opened 4 years ago
I would like to work on this @vinitshahdeo
@deprov447 Nice catch 👍
Please go ahead. Throw an Invalid Config: (range.high - range.low) should always be greater than count
error.
@vinitshahdeo By mistake I merged my commit into one of my previous PRs. Please have a look #66
Describe the bug
The random ports generated in
/server/utils/randomNum.js
will have to pass duplicate port numbers to/server/index.js
whenhigh - low < countofPorts
. This renders index.js file to enter infinite loop.To Reproduce
Steps to reproduce the behavior:
/
config.json
for range.high-range.low < count .npm start
Expected behavior
If the provided range is less than countofPorts, show error and display a message.