From f6afec2be81d8cc7af76c59b453ac5add9f7dccb Mon Sep 17 00:00:00 2001 From: teor Date: Fri, 7 Jul 2023 13:35:41 +1000 Subject: [PATCH] fix(ci): Increase peer cache startup wait time and test time (#7169) * Increase peer cache test time * Wait longer for DNS responses before writing peers to disk --- zebra-network/src/peer_cache_updater.rs | 2 +- zebrad/tests/common/launch.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zebra-network/src/peer_cache_updater.rs b/zebra-network/src/peer_cache_updater.rs index 64c160e8..c213b873 100644 --- a/zebra-network/src/peer_cache_updater.rs +++ b/zebra-network/src/peer_cache_updater.rs @@ -25,7 +25,7 @@ pub async fn peer_cache_updater( // // TODO: turn the initial sleep time into a parameter of this function, // and allow it to be set in tests - sleep(DNS_LOOKUP_TIMEOUT * 2).await; + sleep(DNS_LOOKUP_TIMEOUT * 4).await; loop { // Ignore errors because updating the cache is optional. diff --git a/zebrad/tests/common/launch.rs b/zebrad/tests/common/launch.rs index 8b8738b4..0ed4899b 100644 --- a/zebrad/tests/common/launch.rs +++ b/zebrad/tests/common/launch.rs @@ -39,7 +39,7 @@ pub const LAUNCH_DELAY: Duration = Duration::from_secs(15); /// After we launch `zebrad`, wait this long in extended tests. /// See [`LAUNCH_DELAY`] for details. -pub const EXTENDED_LAUNCH_DELAY: Duration = Duration::from_secs(25); +pub const EXTENDED_LAUNCH_DELAY: Duration = Duration::from_secs(45); /// After we launch `lightwalletd`, wait this long for the command to start up, /// take the actions expected by the quick tests, and log the expected logs.