Extend time in sync test

This commit is contained in:
Luke Parker 2024-04-18 02:51:38 -04:00
parent 5830c2463d
commit 593aefd229
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -715,12 +715,12 @@ pub async fn handle_p2p_task<D: Db, P: P2p>(
{ {
if our_key == validator.0 { if our_key == validator.0 {
selected = true; selected = true;
break; continue;
} }
} }
if !selected { if !selected {
log::debug!("received heartbeat and not selected to respond"); log::debug!("received heartbeat and not selected to respond");
return; continue;
} }
log::debug!("received heartbeat and selected to respond"); log::debug!("received heartbeat and selected to respond");

View file

@ -121,8 +121,8 @@ async fn sync_test() {
.map_err(|_| "failed to send ActiveTributary to heartbeat") .map_err(|_| "failed to send ActiveTributary to heartbeat")
.unwrap(); .unwrap();
// The heartbeat is once every 10 blocks // The heartbeat is once every 10 blocks, with some limitations
sleep(Duration::from_secs(10 * block_time)).await; sleep(Duration::from_secs(20 * block_time)).await;
assert!(syncer_tributary.tip().await != spec.genesis()); assert!(syncer_tributary.tip().await != spec.genesis());
// Verify it synced to the tip // Verify it synced to the tip