Avoid spurious acceptance test failures by decreasing the peer crawler timeout (#2905)
* Improve logging for initial peer connections * Decrease the initial peer crawl timeout to make tests more reliable Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
This commit is contained in:
parent
12a96e9bef
commit
4b8b65a627
|
|
@ -196,8 +196,11 @@ where
|
||||||
// - we're waiting on a handshake to complete so there are peers, or
|
// - we're waiting on a handshake to complete so there are peers, or
|
||||||
// - another task that handles or adds peers is waiting on this task
|
// - another task that handles or adds peers is waiting on this task
|
||||||
// to complete.
|
// to complete.
|
||||||
if let Ok(fanout_result) =
|
if let Ok(fanout_result) = timeout(
|
||||||
timeout(constants::REQUEST_TIMEOUT, self.update_fanout(fanout_limit)).await
|
constants::MIN_PEER_GET_ADDR_INTERVAL,
|
||||||
|
self.update_fanout(fanout_limit),
|
||||||
|
)
|
||||||
|
.await
|
||||||
{
|
{
|
||||||
fanout_result?;
|
fanout_result?;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue