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