Hello
I have a Node.js app running on my local machine that publishes to a pub/sub topic. I'm currently using the Pub/Sub emulator Docker image to receive the messages so I don't use the actual service.
I want to test a scenario where Pub/Sub has a big latency in receiving my messages and throws a timeout error.
How can I simulate such a scenario? Is there any extra configuration I can add to the pub/sub simulator to make it fail on purpose?
Thanks
Solved! Go to Solution.
You may use a network simulation tool that can introduce latency or packet loss between your app and the emulator. If you are on Linux, you can use tc.