Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix: potential call-stack crash when using 'dry-run' option #4839

Merged
merged 2 commits into from
Mar 4, 2022

Conversation

juergba
Copy link
Contributor

@juergba juergba commented Mar 1, 2022

Description

dry-run mode: since the tests are not executed, but triggered only into an empty synchronous run, there is a potential risk of RangeError: Maximum call stack size exceeded.

Description of the Change

For each test we add an asynchronous function call with Runner.immediately(). We pay a slight performance costs for this which is insignificant in dry-run mode.

Applicable issues

closes #4838

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
semver-patch implementation requires increase of "patch" version number; "bug fixes"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when using the --dry-run flag with many suites
1 participant