Open ChrisHSandN opened 3 years ago
I have found you can (very hackly) bypass the error being thrown by manually editing node_modules/webdriver/node_modules/got/dist/source/core/index.js
// add this condition ~line 956
else if (error.code === 'ECONNRESET') {
return;
}
// before this exiting one
else {
error = new RequestError(error.message, error, this);
}
It's no solution but it means you can at least get the Spectron tests running again!
are there any other ideas about this? Spectron 15/Electron 13 also seems to behave this way, except that this ECONNRESET error shows up when attempting to start another app instance after stopping the first. Now, of course, the version of got
is newer, and the failure appears to originate from webdriver/build/utils.js
OS: Windows 10 Electron: 10.1.5 Spectron: 12.0.0
Electron 10 + Spectron 12 tests will pass (and successfully have access to the app via the webdriver.io functions) but will throw an uncaught ECONNRESET exception when stopping the app.
Minimal Reproducible Example:
package.json
main.js
spec.js
To Run
Error