Skip to content

Commit

Permalink
increase timeout to 30s for generate_block test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Sep 6, 2023
1 parent 7a81f87 commit 69dbb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl NodeHandle {
let receiver = bus.oneshot::<NewHeadBlock>().await?;
bus.broadcast(GenerateBlockEvent::new_break(true))?;
let block = if let Ok(Ok(event)) =
async_std::future::timeout(Duration::from_secs(5), receiver).await
async_std::future::timeout(Duration::from_secs(30), receiver).await
{
//wait for new block event to been processed.
Delay::new(Duration::from_millis(100)).await;
Expand Down

0 comments on commit 69dbb47

Please sign in to comment.