I'm performing integrations tests on my dotnet runtime and I am using MassTransit TestHarness to simulate a message broker. Everything works great, but I can't find an easy way to lock the tests main thread to wait for the messages to be consumed. Currently I'm using a loop with delay tasks, (which works), but was hoping for a more synchronous approach. Any suggestions?
This is the integration test app runtime setup:
I tried the following solution which works, but I wasn't able to have it working with the commented statement.
SetTestTimeouts
to increase the inactivity timeout. – BuddhiSetTestTimeouts
worked, thank you – Lamination