-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Integration test not able to track all messages #468
Comments
After some debugging this could be some kind of problem with asynchronicity. The execution flow in the test jumps to |
I think I got this now, perhaps... The tracked session is marked as Completed always when recording a message if there isn't any TrackedConditions that prevent it.
The status is the |
@mirinkinen I stumbled into this myself today while working on something completely different. The tracking was always used before on a single triggering message. In your case -- and mine -- it's able to think it's complete and trigger the task completion during the actions in the ExecuteAndWaitAsync(). I'm fixing this today to latch that. Easy money once and only once I saw a reproduction. |
There is a problem with tracking messages that are sent from ASP.NET Core middleware after controller logic. The issue is reproduced in this simple app.
The app has a
MessageMiddleware
that sends theBeforeMessage
before the controller andAfterMessage
after the controller. In between, the controller sends it own message of typeControllerMesssage
.The
all_messages_are_tracked
test tries to track these messages. The tracking works when controller returns plainOk()
but does not work when controller returns any kind of object, even a simple string.The text was updated successfully, but these errors were encountered: