Merge pull request #221 from BartVerm779/integration_test__package_support

Fixed the max retries to at least have 1 try and a delay has been added
This commit is contained in:
Jon Samwell 2022-05-06 20:46:33 +10:00 committed by GitHub
commit c6b64cae2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -302,7 +302,7 @@ abstract class GherkinIntegrationTestRunner {
result = new StepResult(
0, StepExecutionResult.skipped, "Previous step(s) failed.");
} else {
for (int i = 0; i < this.configuration.stepMaxRetries; i++) {
for (int i = 0; i < this.configuration.stepMaxRetries + 1; i++) {
result = await executable.step.run(
dependencies.world,
reporter,
@ -311,6 +311,8 @@ abstract class GherkinIntegrationTestRunner {
);
if (!_isNegativeResult(result.result)) {
break;
} else {
await Future.delayed(this.configuration.retryDelay);
}
}
}