Skip to content

Commit

Permalink
set faucet bday to 0 and fixed breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar-Pepper committed Oct 13, 2023
1 parent 25eeae8 commit 2432da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions zingo-testutils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
8 changes: 2 additions & 6 deletions zingocli/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(&regtest_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]
Expand Down Expand Up @@ -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(&regtest_manager, &faucet, 1)
.await
.unwrap();

let amount_to_send = 5_000;
faucet
.do_send(vec![(
Expand All @@ -741,7 +738,6 @@ async fn send_mined_sapling_to_orchard() {
)])
.await
.unwrap();

zingo_testutils::increase_height_and_wait_for_client(&regtest_manager, &faucet, 1)
.await
.unwrap();
Expand Down

0 comments on commit 2432da5

Please sign in to comment.