-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Cannot distinguish 2 sequential action dispatch calls #122
Comments
Hi @ch-angelino 👋 Are you able to provide a link to a minimal reproduction sample? It would be much easier to help if I could clone a working reproduction sample and run/debug it locally, thanks! 🙏 |
Hi @felangel 👋 Here you go: https://github.com/ch-angelino/Flutter-Mocktail-Bug-Demo-122 Just clone the repo then go Thanks for looking into this 🙏 |
Thanks I’ll take a look tomorrow morning! |
Hey @felangel, any update on this? TIA |
Hi @ch-angelino is this still an issue? I'm really sorry I didn't have time to look and it fell off my radar :( |
@felangel I just tested that repro repo on Mocktail 1.0.3 and Flutter 3.13.9 and the same error is still coming up:
|
Describe the bug
When verifying that 2 actions have been dispatched from a redux store in a redux middleware one after the other, the verify function cannot distinguish the 2 actions, i.e. any of the 2 actions will match 2 calls instead of 1 each.
To Reproduce
lib/middleware.dart
:test/middleware_test.dart
:Steps to reproduce the behavior:
flutter test
Expected behavior
Test passes.
Logs
Additional context
Tested on Mocktail versions 0.2.0 and 0.3.0.
Commenting out any of the 2
verify
checks makes the test pass, so the checks both work on their own.Adding
.called(2)
to any of the 2verify
checks and commenting out the other check makes the test pass, so it seems there is no distinction between the 2 different actions.The text was updated successfully, but these errors were encountered: