karma-sauce-launcher
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -68,15 +68,13 @@ "use strict"; | ||
this.on('kill', (doneFn) => __awaiter(this, void 0, void 0, function* () { | ||
yield Promise.all(connectedDrivers.map(driver => { | ||
try { | ||
return driver.quit(); | ||
} | ||
catch (e) { | ||
// We need to ignore the exception here because we want to make sure that Karma is still | ||
// able to retry connecting if Saucelabs itself terminated the session (and not Karma) | ||
// For example if the "idleTimeout" is exceeded and Saucelabs errored the session. See: | ||
// https://wiki.saucelabs.com/display/DOCS/Test+Didn%27t+See+a+New+Command+for+90+Seconds | ||
log.error('Could not quit the Saucelabs selenium connection. Failure message:'); | ||
log.error(e); | ||
} | ||
})); | ||
try { | ||
yield Promise.all(connectedDrivers.map(driver => driver.quit())); | ||
} | ||
catch (e) { | ||
// We need to ignore the exception here because we want to make sure that Karma is still | ||
// able to retry connecting if Saucelabs itself terminated the session (and not Karma) | ||
// For example if the "idleTimeout" is exceeded and Saucelabs errored the session. See: | ||
// https://wiki.saucelabs.com/display/DOCS/Test+Didn%27t+See+a+New+Command+for+90+Seconds | ||
log.error('Could not quit the Saucelabs selenium connection. Failure message:'); | ||
log.error(e); | ||
} | ||
// Reset connected drivers in case the launcher will be reused. | ||
@@ -83,0 +81,0 @@ connectedDrivers = []; |
{ | ||
"name": "karma-sauce-launcher", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A Karma plugin. Launch any browser on SauceLabs!", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33725
280