mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Extend time in sync test
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user