Remove IIFE in test/saucelabs.js.

This commit is contained in:
John-David Dalton
2014-04-28 08:41:24 -07:00
parent 2c4657355f
commit 3efa9d2030

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env node #!/usr/bin/env node
;(function() {
'use strict'; 'use strict';
/** Environment shortcut */ /** Environment shortcut */
@@ -52,8 +51,7 @@
var reError = /\berror\b/i; var reError = /\berror\b/i;
/** Used to display the wait throbber */ /** Used to display the wait throbber */
var throbberId, var throbberDelay = 500,
throbberDelay = 500,
waitCount = -1; waitCount = -1;
/** Used as Sauce Labs config values */ /** Used as Sauce Labs config values */
@@ -457,11 +455,8 @@
run(platforms, function(success) { run(platforms, function(success) {
console.log('Shutting down Sauce Connect tunnel...'); console.log('Shutting down Sauce Connect tunnel...');
clearInterval(throbberId);
tunnel.stop(function() { process.exit(success ? 0 : 1); }); tunnel.stop(function() { process.exit(success ? 0 : 1); });
}); });
throbberId = setInterval(logThrobber, throbberDelay); setInterval(logThrobber, throbberDelay);
logThrobber();
}); });
}());