Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the subscriber_triggered_to_receive_message test more reliable. (#…
…2584) * Make the subscriber_triggered_to_receive_message test more reliable. In the current code, inside of the timer we create the subscription and the publisher, publish immediately, and expect the subscription to get it immediately. But it may be the case that discovery hasn't even happened between the publisher and the subscription by the time the publish call happens. To make this more reliable, create the subscription and publish *before* we ever create and spin on the timer. This at least gives 100 milliseconds for discovery to happen. That may not be quite enough to make this reliable on all platforms, but in my local testing this helps a lot. Prior to this change I can make this fail one out of 10 times, and after the change I've run 100 times with no failures. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information