mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Correct attempt count in test/saucelabs.js.
This commit is contained in:
@@ -318,9 +318,9 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!result || failures || reError.test(result.message)) {
|
if (!result || failures || reError.test(result.message)) {
|
||||||
if (this.attempts <= maxRetries) {
|
if (this.attempts < maxRetries) {
|
||||||
this.attempts++;
|
this.attempts++;
|
||||||
console.log(label + ' Attempt %d', this.attempts);
|
console.log(label + ' ' + description + ' attempt %d', this.attempts);
|
||||||
this.run();
|
this.run();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -332,7 +332,6 @@
|
|||||||
console.error(label + ' %s ' + chalk.red('failed') + ' %d test' + (failures > 1 ? 's' : '') + '. %s', description, failures, details);
|
console.error(label + ' %s ' + chalk.red('failed') + ' %d test' + (failures > 1 ? 's' : '') + '. %s', description, failures, details);
|
||||||
} else {
|
} else {
|
||||||
var message = _.result(result, 'message', 'no results available. ' + details);
|
var message = _.result(result, 'message', 'no results available. ' + details);
|
||||||
|
|
||||||
console.error(label, description, chalk.red('failed') + ';', message);
|
console.error(label, description, chalk.red('failed') + ';', message);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user