-
I'm facing the following test case: Here, consumer bootstrap and triggers are called after the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
What type of message queue are we talking about here. Nock is only able to intercept HTTP requests made in the same Node process. Therefore, the Queue A consumer would need to in the same Node process as the test runner.
Nock monkey patches the native |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @mastermatt |
Beta Was this translation helpful? Give feedback.
Thanks for your answer @mastermatt
The queue here is RabbitMQ, but it does not matter that much for the issue since both consumer and producer are within the same node process.
I found that a wrong timing in the queue was replicating a call twice leading nock to fail (as it should), but I was mistaken making the diagnosis.
Solved by now.