Skip to content

Commit

Permalink
Simplify InsufficientFundsError testcase.
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyjon committed Jun 8, 2022
1 parent 760e2a2 commit 67579f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/unit/wallet/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,16 +617,12 @@ async def _test_send_everything_use_cases(self):
await self.ledger.release_outputs(utxos)

# everything: insufficient funds
try:
with self.assertRaises(lbry.error.InsufficientFundsError):
tx = await self.tx(
[], # inputs
[self.txo(19.93)], # outputs
everything=True
)
except lbry.error.InsufficientFundsError:
pass
else:
self.fail("expected InsufficientFunds exception")

await self.ledger.release_outputs(utxos)

Expand Down

0 comments on commit 67579f0

Please sign in to comment.