Skip to content

Commit

Permalink
fix(ci): Increase peer cache startup wait time and test time (#7169)
Browse files Browse the repository at this point in the history
* Increase peer cache test time

* Wait longer for DNS responses before writing peers to disk
  • Loading branch information
teor2345 authored Jul 7, 2023
1 parent 1014e3c commit f6afec2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zebra-network/src/peer_cache_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion zebrad/tests/common/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f6afec2

Please sign in to comment.