Skip to content

Commit

Permalink
Extend time in sync test
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Apr 18, 2024
1 parent 5830c24 commit 593aefd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions coordinator/src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,12 @@ pub async fn handle_p2p_task<D: Db, P: P2p>(
{
if our_key == validator.0 {
selected = true;
break;
continue;
}
}
if !selected {
log::debug!("received heartbeat and not selected to respond");
return;
continue;
}

log::debug!("received heartbeat and selected to respond");
Expand Down
4 changes: 2 additions & 2 deletions coordinator/src/tests/tributary/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ async fn sync_test() {
.map_err(|_| "failed to send ActiveTributary to heartbeat")
.unwrap();

// The heartbeat is once every 10 blocks
sleep(Duration::from_secs(10 * block_time)).await;
// The heartbeat is once every 10 blocks, with some limitations
sleep(Duration::from_secs(20 * block_time)).await;
assert!(syncer_tributary.tip().await != spec.genesis());

// Verify it synced to the tip
Expand Down

0 comments on commit 593aefd

Please sign in to comment.