'Cucumberjs Parallel execution-for 3 or more instances - Only one usage of each socket address (protocol/network address/port) is normally permitted

I am trying to execute Cucumber-js feature files in parallel. Providing number of parallel runs in cucumber.js file

let runCucumber = [ --parallel 3,

It runs fine with two workers, but with more than 2 workers- two browser instance launch and run, but third test throws error -

"browserType.launch: Timeout 30000ms exceeded. returned an error: Only one usage of each socket address (protocol/network address/port) is normally permitted Cannot start http server for devtools"

Can someone help with this issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source