mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 15:35:05 +00:00
The test UnicastZenPing#testResolveTimeout chooses a random resolve timeout between 1ms and 100ms. Close to the lower bound, this is far too short and the test races against the concurrent resolves executing before the timeout elapses. This commit increases the timeout to something that is far less likely to race, yet will not slow the test down since we are not doing resolves against a real DNS service anyway. Note that we still want a short resolve timeout since we are testing whether or not timeouts really work here (by latching one of the resolves to respond slowly).