diff --git a/tests/test_mint_fees.py b/tests/test_mint_fees.py index b1be77f2..16f77aab 100644 --- a/tests/test_mint_fees.py +++ b/tests/test_mint_fees.py @@ -192,7 +192,7 @@ async def test_melt_internal(wallet1: Wallet, ledger: Ledger): assert not melt_quote_pre_payment.paid, "melt quote should not be paid" # let's first try to melt without enough funds - send_proofs, fees = await wallet1.select_to_send(wallet1.proofs, 63) + send_proofs, fees = await wallet1.select_to_send(wallet1.proofs, 64) # this should fail because we need 64 + 1 sat fees assert sum_proofs(send_proofs) == 64 await assert_err( @@ -201,7 +201,9 @@ async def test_melt_internal(wallet1: Wallet, ledger: Ledger): ) # the wallet respects the fees for coin selection - send_proofs, fees = await wallet1.select_to_send(wallet1.proofs, 64) + send_proofs, fees = await wallet1.select_to_send( + wallet1.proofs, 64, include_fees=True + ) # includes 1 sat fees assert sum_proofs(send_proofs) == 65 await ledger.melt(proofs=send_proofs, quote=melt_quote.quote)