From 5feaade1c75512b8f8845925b407cbb5e5c531ff Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 21 Apr 2014 21:46:39 -0700 Subject: [PATCH] Correct attempt count in test/saucelabs.js. --- test/saucelabs.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/saucelabs.js b/test/saucelabs.js index 25aa21636..3c1ce1846 100644 --- a/test/saucelabs.js +++ b/test/saucelabs.js @@ -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 {