From a25123820737c8b4ffaca8d5e4425b4c29c75408 Mon Sep 17 00:00:00 2001 From: Robert Klotzner Date: Wed, 8 Sep 2021 11:25:08 +0200 Subject: [PATCH 1/2] Increase timeout in tests. Fixes #3798 --- node/network/availability-recovery/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/network/availability-recovery/src/lib.rs b/node/network/availability-recovery/src/lib.rs index bd747c463fe1..0b973e03bd72 100644 --- a/node/network/availability-recovery/src/lib.rs +++ b/node/network/availability-recovery/src/lib.rs @@ -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 { From f35175e2b90fdf60ce9847b47a6728d0e8dda0aa Mon Sep 17 00:00:00 2001 From: Robert Klotzner Date: Wed, 8 Sep 2021 12:01:44 +0200 Subject: [PATCH 2/2] Fix timeout. --- node/network/availability-recovery/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/network/availability-recovery/src/tests.rs b/node/network/availability-recovery/src/tests.rs index e31a4f436043..a918b8c615d8 100644 --- a/node/network/availability-recovery/src/tests.rs +++ b/node/network/availability-recovery/src/tests.rs @@ -109,7 +109,7 @@ fn test_harness_chunks_only {