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
This commit is contained in:
teor 2023-07-07 13:35:41 +10:00 committed by GitHub
parent 1014e3c785
commit f6afec2be8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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