Skip to content

Commit

Permalink
Merge pull request zingolabs#661 from AloeareV/fix_1153_hang
Browse files Browse the repository at this point in the history
fix 1153 block scenario hang
  • Loading branch information
fluidvanadium authored Nov 8, 2023
2 parents 10f1c4d + 9386371 commit 31418c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zingo-testutils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,11 @@ pub mod scenarios {
self.regtest_manager
.generate_n_blocks(BASE_HEIGHT - 1)
.unwrap();
while crate::poll_server_height(&self.regtest_manager) != BASE_HEIGHT {
while crate::poll_server_height(&self.regtest_manager)
.as_u32()
.unwrap()
< BASE_HEIGHT
{
sleep(std::time::Duration::from_millis(50)).await;
}
}
Expand Down

0 comments on commit 31418c4

Please sign in to comment.