Pacyfist
❔ Timing issues whole end-to-end testing microservices.
I'm using MassTransit to communicate between microservies. This creates a problem when I'm writing tests. This is my test written using SpecFlow BDD framework:
And it works perfectly. A single message is sent, and processed. But when the case is more complex there is a problem.
Here scenario fails, because the message adding the task for installation
81A4A87E-2D12-49E0-8E85-25AD8E17B1A5
is processed after the check has already been run.
Is there a way to ensure that messages were processed using MassTransit TestHarness? ChatGPT is fixated on simply adding await Task.Delay(1000)
and I would feel really dirty doing that.2 replies