mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
test: add a test for devnet failure (#14288)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user