Correct attempt count in test/saucelabs.js.

This commit is contained in:
John-David Dalton
2014-04-21 21:46:39 -07:00
parent 31747dfecd
commit 5feaade1c7

View File

@@ -318,9 +318,9 @@
return;
}
if (!result || failures || reError.test(result.message)) {
if (this.attempts <= maxRetries) {
if (this.attempts < maxRetries) {
this.attempts++;
console.log(label + ' Attempt %d', this.attempts);
console.log(label + ' ' + description + ' attempt %d', this.attempts);
this.run();
return;
}
@@ -332,7 +332,6 @@
console.error(label + ' %s ' + chalk.red('failed') + ' %d test' + (failures > 1 ? 's' : '') + '. %s', description, failures, details);
} else {
var message = _.result(result, 'message', 'no results available. ' + details);
console.error(label, description, chalk.red('failed') + ';', message);
}
} else {