Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #158 from TestArmada/fastfailsupport
Browse files Browse the repository at this point in the history
Add support for fast-failed connections in sauce tunnels
  • Loading branch information
Maciek416 authored Jul 28, 2016
2 parents c46f3b5 + cda7a46 commit 3dcbddf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sauce/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var config = {
tunnelTimeout: process.env.SAUCE_TUNNEL_CLOSE_TIMEOUT,
useTunnels: !!argv.create_tunnels,
maxTunnels: argv.num_tunnels || 1,
fastFailRegexps: process.env.SAUCE_TUNNEL_FAST_FAIL_REGEXPS,

locksServerLocation: argv.locks_server || process.env.LOCKS_SERVER,
locksOutageTimeout: 1000 * 60 * 5,
Expand Down
4 changes: 4 additions & 0 deletions src/sauce/tunnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ module.exports = {
logfile: logFilePath
};

if (settings.fastFailRegexps) {
sauceOptions.fastFailRegexps = settings.fastFailRegexps;
}

var seleniumPort = options.seleniumPort;
if (seleniumPort) {
sauceOptions.port = seleniumPort;
Expand Down

0 comments on commit 3dcbddf

Please sign in to comment.