mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 03:01:07 +00:00
Fix flaky availability-recovery test (#3812)
* Increase timeout in tests. Fixes #3798 * Fix timeout.
This commit is contained in:
@@ -93,7 +93,7 @@ const COST_INVALID_REQUEST: Rep = Rep::CostMajor("Peer sent unparsable request")
|
||||
#[cfg(not(test))]
|
||||
const TIMEOUT_START_NEW_REQUESTS: Duration = CHUNK_REQUEST_TIMEOUT;
|
||||
#[cfg(test)]
|
||||
const TIMEOUT_START_NEW_REQUESTS: Duration = Duration::from_millis(10);
|
||||
const TIMEOUT_START_NEW_REQUESTS: Duration = Duration::from_millis(100);
|
||||
|
||||
/// The Availability Recovery Subsystem.
|
||||
pub struct AvailabilityRecoverySubsystem {
|
||||
|
||||
@@ -109,7 +109,7 @@ fn test_harness_chunks_only<T: Future<Output = (VirtualOverseer, RequestResponse
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
const TIMEOUT: Duration = Duration::from_millis(100);
|
||||
const TIMEOUT: Duration = Duration::from_millis(300);
|
||||
|
||||
macro_rules! delay {
|
||||
($delay:expr) => {
|
||||
|
||||
Reference in New Issue
Block a user