diff --git a/zebrad/tests/common/lightwalletd/send_transaction_test.rs b/zebrad/tests/common/lightwalletd/send_transaction_test.rs index 438990404be..3a2fdeeb0f0 100644 --- a/zebrad/tests/common/lightwalletd/send_transaction_test.rs +++ b/zebrad/tests/common/lightwalletd/send_transaction_test.rs @@ -92,15 +92,14 @@ pub async fn run() -> Result<()> { ); let mut count = 0; - let blocks: Vec = - get_future_blocks(&network, test_type, test_name, MAX_NUM_FUTURE_BLOCKS) - .await? - .into_iter() - .take_while(|block| { - count += block.transactions.len() - 1; - count <= max_sent_transactions() - }) - .collect(); + let blocks: Vec = future_blocks(&network, test_type, test_name, MAX_NUM_FUTURE_BLOCKS) + .await? + .into_iter() + .take_while(|block| { + count += block.transactions.len() - 1; + count <= max_sent_transactions() + }) + .collect(); tracing::info!( blocks_count = ?blocks.len(),