Closed JoshuaNitschke closed 10 months ago
I added unit tests to verify my swagger experience. I would expect all the tests to pass
That was unpleasant to debug.
It's a combinatorial bug that's specific to the usage of Marten + doing no actual persistence
@jeremydmiller thank you!
STEPS TO REPRODUCE 1) Clone https://github.com/JoshuaNitschke/wolverine-issue-reproduction 2) Add postgres database as a user secret 2) Start the web api 3) Use the swagger page to execute all four end points
RESULT The handlers for the first two endpoints will not execute (as determined by the handlers never firing logs nor hitting break points when running in debug mode). However, the second two endpoints work just fine. The only difference between the first set of endpoints and the second is that the first two have an unused dependency injected
IDocumentSession session
, which I wouldn't expect to affect the message bus behavior.EXPECTED RESULT: 1) The first two endpoints should behave exactly the same as the last two endpoints with log messages showing messages received, and handled as they do when opts.Policies.UseDurableLocalQueues() is set (output when enabled pictured below)
Now, uncomment
opts.Policies.UseDurableLocalQueues();
and verify that logs show the handlers execute all four times - I would expect the same result for the in memory bus.