Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Set default timeout in test helpers to 100ms #607

Merged
merged 1 commit into from
May 27, 2021
Merged

Conversation

germsvel
Copy link
Collaborator

Commit aa8c458 introduced the ability to accept a timeout option in test helpers. To consolidate logic, it extracted a get_timeout/1 function, but it incorrectly set the default value to 1000 ms. This commit corrects that by setting it to 100 ms.

We also take the opportunity to use the get_timeout/1 helper from the refute_timeout/1 function, thus we consolidate all fetching of the :timeout option to the get_timeout/1 helper.

Commit aa8c458 introduced the ability to accept a timeout option in test
helpers. To consolidate logic, it extracted a `get_timeout/1` function,
but it incorrectly set the default value to 1000 ms. This commit
corrects that by setting it to 100 ms.

We also take the opportunity to use the `get_timeout/1` helper from the
`refute_timeout/1` function, thus we consolidate all fetching of the
`:timeout` option to the `get_timeout/1` helper.
@germsvel germsvel merged commit dbc9203 into master May 27, 2021
@germsvel germsvel deleted the gv-fix-timeout branch May 27, 2021 10:39
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.

1 participant