Skip to content

Commit

Permalink
chore: mine 100 blocks to make output spendable
Browse files Browse the repository at this point in the history
Unfortunately I was not able to reproduce the flakyness in CI. An assumption I have is that we either did not pick up the funds yet or the output was not yet spendable. By mining 100 blocks and ensuring the balance we will learn more
  • Loading branch information
bonomat committed Sep 8, 2023
1 parent ebb8b11 commit 601a0fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/tests-e2e/tests/maker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ async fn maker_can_open_channel_to_coordinator_and_send_payment() -> Result<()>
.send_to_address(address, Amount::ONE_BTC)
.await
.unwrap();
bitcoind.mine(1).await.unwrap();
bitcoind.mine(101).await.unwrap();
maker.sync_on_chain().await.unwrap();

let maker_on_chain_balance = maker.get_balance().await.unwrap().onchain;
assert!(maker_on_chain_balance > 0);

let balance_maker_before_channel = maker.get_balance().await?.offchain;

let outbound_liquidity_maker = 500_000;
Expand Down

0 comments on commit 601a0fe

Please sign in to comment.