diff --git a/zingo-testutils/src/lib.rs b/zingo-testutils/src/lib.rs index 8d7b5b509..e15e77fe1 100644 --- a/zingo-testutils/src/lib.rs +++ b/zingo-testutils/src/lib.rs @@ -581,6 +581,7 @@ pub mod scenarios { .client_builder .build_new_faucet(0, false, regtest_network) .await; + faucet.do_sync(false).await.unwrap(); ( sb.regtest_manager, sb.child_process_handler.unwrap(), diff --git a/zingocli/tests/integration_tests.rs b/zingocli/tests/integration_tests.rs index 009999866..ac9ff402d 100644 --- a/zingocli/tests/integration_tests.rs +++ b/zingocli/tests/integration_tests.rs @@ -646,10 +646,11 @@ async fn actual_empty_zcashd_sapling_commitment_tree() { async fn mine_sapling_to_self() { let regtest_network = RegtestNetwork::all_upgrades_active(); let (regtest_manager, _cph, faucet) = scenarios::faucet(regtest_network).await; + check_client_balances!(faucet, o: 0u64 s: 1_875_000_000u64 t: 0u64); zingo_testutils::increase_height_and_wait_for_client(®test_manager, &faucet, 1) .await .unwrap(); - check_client_balances!(faucet, o: 0u64 s: 1_250_000_000u64 t: 0u64); + check_client_balances!(faucet, o: 0u64 s: 2_500_000_000u64 t: 0u64); } #[tokio::test] @@ -728,10 +729,6 @@ async fn send_mined_sapling_to_orchard() { // NOTE that the balance doesn't give insight into the distribution across notes. let regtest_network = RegtestNetwork::all_upgrades_active(); let (regtest_manager, _cph, faucet) = scenarios::faucet(regtest_network).await; - zingo_testutils::increase_height_and_wait_for_client(®test_manager, &faucet, 1) - .await - .unwrap(); - let amount_to_send = 5_000; faucet .do_send(vec![( @@ -741,7 +738,6 @@ async fn send_mined_sapling_to_orchard() { )]) .await .unwrap(); - zingo_testutils::increase_height_and_wait_for_client(®test_manager, &faucet, 1) .await .unwrap();