test: add a test for devnet failure (#14288)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Arsenii Kulikov
2025-02-08 21:06:42 +04:00
committed by GitHub
parent 7d0f5b757f
commit 46d3b6a32e
5 changed files with 82 additions and 6 deletions

View File

@ -266,8 +266,6 @@ where
/// Sends FCU and waits for the node to sync to the given block.
pub async fn sync_to(&self, block: BlockHash) -> eyre::Result<()> {
self.engine_api.update_forkchoice(block, block).await?;
let start = std::time::Instant::now();
while self
@ -277,6 +275,7 @@ where
.is_none_or(|h| h.hash() != block)
{
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
self.engine_api.update_forkchoice(block, block).await?;
assert!(start.elapsed() <= std::time::Duration::from_secs(10), "timed out");
}