Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Commit deafd55

Browse files
committed
feat: provide the ability to modify retries count from plugins
1 parent d63bb78 commit deafd55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/runner/suite-runner/insistent-suite-runner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = class InsistentSuiteRunner extends SuiteRunner {
1515
constructor(suite, browserAgent, config) {
1616
super(suite, browserAgent);
1717

18-
this._retries = config.retry;
18+
this._config = config;
1919
this._retriesPerformed = 0;
2020
}
2121

@@ -75,8 +75,8 @@ module.exports = class InsistentSuiteRunner extends SuiteRunner {
7575
}
7676

7777
_submitForRetry(e) {
78-
const retriesLeft = this._retries - this._retriesPerformed;
79-
if (!retriesLeft) {
78+
const retriesLeft = this._config.retry - this._retriesPerformed;
79+
if (retriesLeft <= 0) {
8080
return false;
8181
}
8282

0 commit comments

Comments
 (0)