Skip to content

Commit

Permalink
close Selenium tunnel gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
warpech committed Jun 28, 2019
1 parent 3412230 commit bbd3002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Sauce/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const sauceConnectLauncher = require('sauce-connect-launcher');
const username = process.env.SAUCE_USERNAME; //JSON-Patch repo uses "json-patch" user which is a subaccount of the Starcounter SauceLabs account
const accessKey = process.env.SAUCE_ACCESS_KEY;

const tunnelIdentifier = "tunnel" + process.env.TRAVIS_JOB_NUMBER;
const tunnelIdentifier = "tunnel" + (process.env.TRAVIS_JOB_NUMBER || "-local");

if (!username) {
console.error(
Expand Down Expand Up @@ -58,10 +58,10 @@ if (!username) {

sauceConnectProcess.close(function () {
console.log("Closed Sauce Connect process");
process.exit(0);
})

console.log('Done!');
process.exit(0);
});

} catch (error) {
Expand Down

0 comments on commit bbd3002

Please sign in to comment.