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

Accept timeout option in test helpers #605

Merged
merged 1 commit into from
May 27, 2021

Conversation

germsvel
Copy link
Collaborator

Resolves #506

What changed?

We update all test helpers in Bamboo.Test to accept a :timeout option. Once we get the timeout, we forward it to ExUnit's assert_receive as the second argument.

Refutation helpers will use the timeout option passed in (if any), and then fallback to 100ms (if not in shared mode) or the configured refute_timeout if on shared_mode.

What changed?
============

We update all test helpers in `Bamboo.Test` to accept a `:timeout`
option. Once we get the timeout, we forward it to ExUnit's
`assert_receive` as the second argument.

Refutation helpers will use the `timeout` option passed in (if any), and
then fallback to 100ms (if not in shared mode) or the configured
`refute_timeout` if on `shared_mode`.
Copy link
Contributor

@brian-penguin brian-penguin left a comment

Choose a reason for hiding this comment

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

@germsvel germsvel merged commit aa8c458 into master May 27, 2021
@germsvel germsvel deleted the accept-timeout-in-test-helpers branch May 27, 2021 09:33
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.

Allow configuration of receive timeout for assert_*, and refute_* functions
2 participants