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

Allow asserting that a mock will be called within a timeout #282

Open
jfornoff opened this issue Oct 26, 2018 · 1 comment
Open

Allow asserting that a mock will be called within a timeout #282

jfornoff opened this issue Oct 26, 2018 · 1 comment

Comments

@jfornoff
Copy link
Contributor

It'd be nice to have the option to assert that a mocked function will be called in a defined timeout.

:meck.wait supports it pretty directly, should be a good fit to expect(mod) |> to(receive ...).
Maybe something like expect(mod) |> to(receive ..., within: 500)?

@antonmi
Copy link
Owner

antonmi commented Oct 28, 2018

Hi @jfornoff !
Good idea!
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants