Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

don't soft reset if repeat_until_failure is 0#93

Merged
edgurgel merged 1 commit intoedgurgel:mainfrom
sgtpepper43:fix-repeat-until-failure-check
Apr 2, 2025
Merged

don't soft reset if repeat_until_failure is 0#93
edgurgel merged 1 commit intoedgurgel:mainfrom
sgtpepper43:fix-repeat-until-failure-check

Conversation

@sgtpepper43
Copy link
Contributor

Hey sorry it looks like ExUnit.configuration()[:repeat_until_failure] always returns an int, so without the flag it's 0 and 0 is truthy, so it's always running the soft_reset now and breaking test coverage. So this just changes it to check for 0 explicitly, with a fallback in case it ends up as nil somehow or something.

Fixes #92

Copy link
Owner

@edgurgel edgurgel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@edgurgel edgurgel merged commit d9f2da3 into edgurgel:main Apr 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mimic'd modules are skipped during coverage

2 participants