fix(rpc): Wait for 3 minutes to check Zebra is synced to the tip, rather than 2 (#5840)

* Wait for 3 minutes to check Zebra is synced to the tip, rather than 2

* Increase the MockService request timeout
This commit is contained in:
teor 2022-12-13 09:20:03 +10:00 committed by GitHub
parent cb1045ae5f
commit b722a34102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -77,8 +77,9 @@ const DEFAULT_PROXY_CHANNEL_SIZE: usize = 100;
/// Note that if a test checks that no requests are received, each check has to wait for this
/// amount of time, so this may affect the test execution time.
///
/// We've seen delays up to 67ms on busy Linux and macOS machines.
pub const DEFAULT_MAX_REQUEST_DELAY: Duration = Duration::from_millis(150);
/// We've seen delays up to 67ms on busy Linux and macOS machines,
/// and some other timeout failures even with a 150ms timeout.
pub const DEFAULT_MAX_REQUEST_DELAY: Duration = Duration::from_millis(300);
/// An internal type representing the item that's sent in the [`broadcast`] channel.
///

View File

@ -31,7 +31,7 @@ impl RecentSyncLengths {
/// * clearing temporary errors and temporary syncs quickly
/// * distinguishing between temporary and sustained syncs/errors
/// * activating the syncer shortly after reaching the chain tip
pub const MAX_RECENT_LENGTHS: usize = 2;
pub const MAX_RECENT_LENGTHS: usize = 3;
/// Create a new instance of [`RecentSyncLengths`]
/// and a [`watch::Receiver`] endpoint for receiving recent sync lengths.