Increase resolve timeout in unknown hosts test
The port limit test is a simple test that fakes that resolving an address with a port range results the correct address collection. This test is subject to a race condition where the timeout on the resolve request can fire before the resolve code finishes executing (this race is exceptionally rare, because there are not actually any DNS lookups being done here since we are just resolving addresses). This commit increases the timeout here to significantly reduce the chance of a losing race causing a spurious test failure. This increased timeout should not increase the runtime of the test, just make failures less likely.
This commit is contained in:
parent
f5cbc36896
commit
460e787049
|
@ -397,7 +397,7 @@ public class UnicastZenPingTests extends ESTestCase {
|
|||
limitPortCounts,
|
||||
transportService,
|
||||
() -> Integer.toString(idGenerator.incrementAndGet()),
|
||||
TimeValue.timeValueMillis(100));
|
||||
TimeValue.timeValueSeconds(1));
|
||||
assertThat(discoveryNodes, hasSize(limitPortCounts));
|
||||
final Set<Integer> ports = new HashSet<>();
|
||||
for (final DiscoveryNode discoveryNode : discoveryNodes) {
|
||||
|
|
Loading…
Reference in New Issue