You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug here seems to be that when the internal matchers see if one of the recorded calls matches the one described by a withArg block, blocks that don't match throw an AssertionError when they try matching with a non-matching invocation.
These errors should be caught when filtering matching invocations and considered as an indicator of the invocation being non-matching, but instead they bubble up and stop the execution of the verification.
I can try putting together a PR for this but it will likely be very ugly.
In the meantime, I think you can achieve the same behavior in your test by using slot() and capture().
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
The test should pass.
Current Behavior
Trying to verify multiple
withArg
seems to capture only the last value. Maybe it is the same bug as #352.Steps to Reproduce
Run following code and it will fail.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
The text was updated successfully, but these errors were encountered: