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:
teor 2021-10-20 01:29:03 +10:00 committed by GitHub
parent 12a96e9bef
commit 4b8b65a627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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 {