From ce27250cb5a135a0d138638829a7e5db7323751c Mon Sep 17 00:00:00 2001
From: Robert Klotzner <eskimor@users.noreply.github.com>
Date: Tue, 30 Nov 2021 16:44:58 +0100
Subject: [PATCH] Double time we give spawned tasks. (#4415)

* Double time we give spawned tasks.

* Increase time even more, for better robustness.
---
 .../node/network/availability-distribution/src/tests/state.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/polkadot/node/network/availability-distribution/src/tests/state.rs b/polkadot/node/network/availability-distribution/src/tests/state.rs
index 0abc122aa88..267596a8109 100644
--- a/polkadot/node/network/availability-distribution/src/tests/state.rs
+++ b/polkadot/node/network/availability-distribution/src/tests/state.rs
@@ -167,7 +167,7 @@ impl TestState {
 	/// We try to be as agnostic about details as possible, how the subsystem achieves those goals
 	/// should not be a matter to this test suite.
 	async fn run_inner(mut self, mut harness: TestHarness) {
-		// We skip genesis here (in reality ActiveLeavesUpdate can also skip a block:
+		// We skip genesis here (in reality ActiveLeavesUpdate can also skip a block):
 		let updates = {
 			let mut advanced = self.relay_chain.iter();
 			advanced.next();
@@ -204,7 +204,7 @@ impl TestState {
 					overseer_signal(update_tx.clone(), OverseerSignal::ActiveLeaves(update)).await;
 					// We need to give the subsystem a little time to do its job, otherwise it will
 					// cancel jobs as obsolete:
-					Delay::new(Duration::from_millis(20)).await;
+					Delay::new(Duration::from_millis(100)).await;
 				}
 			}
 			.boxed(),
-- 
GitLab