From a73b19e2b8997eb37178a00f8a41f9a0a00e9d2b Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Fri, 13 Oct 2023 21:46:26 -0400 Subject: [PATCH] Tweak coordinator test timing --- coordinator/src/tests/tributary/sync.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coordinator/src/tests/tributary/sync.rs b/coordinator/src/tests/tributary/sync.rs index bf13a7359..3cc7f2c6a 100644 --- a/coordinator/src/tests/tributary/sync.rs +++ b/coordinator/src/tests/tributary/sync.rs @@ -52,12 +52,13 @@ async fn sync_test() { } let tributaries = tributary_arcs; - // After three blocks of time, we should have a new block + // After four blocks of time, we should have a new block // We don't wait one block of time as we may have missed the chance for the first block // We don't wait two blocks because we may have missed the chance, and then had a failure to - // propose by our 'offline' validator + // propose by our 'offline' validator, which would cause the Tendermint round time to increase, + // requiring a longer delay let block_time = u64::from(Tributary::::block_time()); - sleep(Duration::from_secs(3 * block_time)).await; + sleep(Duration::from_secs(4 * block_time)).await; let tip = tributaries[0].tip().await; assert!(tip != spec.genesis());