Skip to content

Commit

Permalink
fix: remove wait from regtest
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Feb 7, 2025
1 parent fc8da82 commit 7366401
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions crates/cdk-integration-tests/tests/regtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use cdk_integration_tests::init_regtest::{
get_cln_dir, get_lnd_cert_file_path, get_lnd_dir, get_lnd_macaroon_path, get_mint_port,
get_mint_url, get_mint_ws_url, LND_RPC_ADDR, LND_TWO_RPC_ADDR,
};
use cdk_integration_tests::wait_for_mint_to_be_paid;
use futures::{join, SinkExt, StreamExt};
use lightning_invoice::Bolt11Invoice;
use ln_regtest_rs::ln_client::{ClnClient, LightningClient, LndClient};
Expand Down Expand Up @@ -178,8 +177,6 @@ async fn test_regtest_mint_melt() -> Result<()> {

lnd_client.pay_invoice(mint_quote.request).await?;

wait_for_mint_to_be_paid(&wallet, &mint_quote.id, 60).await?;

let proofs = wallet
.mint(&mint_quote.id, SplitTarget::default(), None)
.await?;
Expand Down Expand Up @@ -208,8 +205,6 @@ async fn test_restore() -> Result<()> {

lnd_client.pay_invoice(mint_quote.request).await?;

wait_for_mint_to_be_paid(&wallet, &mint_quote.id, 60).await?;

let _mint_amount = wallet
.mint(&mint_quote.id, SplitTarget::default(), None)
.await?;
Expand Down Expand Up @@ -270,8 +265,6 @@ async fn test_pay_invoice_twice() -> Result<()> {
.await
.expect("Could not pay invoice");

wait_for_mint_to_be_paid(&wallet, &mint_quote.id, 60).await?;

let proofs = wallet
.mint(&mint_quote.id, SplitTarget::default(), None)
.await?;
Expand Down Expand Up @@ -326,8 +319,6 @@ async fn test_internal_payment() -> Result<()> {

lnd_client.pay_invoice(mint_quote.request).await?;

wait_for_mint_to_be_paid(&wallet, &mint_quote.id, 60).await?;

let _mint_amount = wallet
.mint(&mint_quote.id, SplitTarget::default(), None)
.await?;
Expand All @@ -352,8 +343,6 @@ async fn test_internal_payment() -> Result<()> {

let _melted = wallet.melt(&melt.id).await.unwrap();

wait_for_mint_to_be_paid(&wallet, &mint_quote.id, 60).await?;

let _wallet_2_mint = wallet_2
.mint(&mint_quote.id, SplitTarget::default(), None)
.await
Expand Down

0 comments on commit 7366401

Please sign in to comment.