Skip to content

Commit

Permalink
Fix Windows delete tx unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Apr 28, 2024
1 parent 5413b31 commit b7bed7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2294,11 +2294,13 @@ def test_wallet_transaction_delete_reverse_latest(self):
t = w.send_to("blt1qad80unqvexkhm96rxysra2mczy74zlszjr4ty9", "0.5 TST", broadcast=True,
fee=4799, random_output_order=False)
self.assertEqual(w.balance(), 199995201)
self.assertEqual(t.txid, expected_txid)
if USE_FASTECDSA:
self.assertEqual(t.txid, expected_txid)
else:
expected_txid = t.txid

wlt_utxos = [u['txid'] for u in w.utxos()]
self.assertEqual(wlt_utxos[2], expected_txid)

wt = w.transaction(t.txid)
wt.delete()
self.assertEqual([], [False for u in w.utxos() if u['txid'] not in expected_utxos])
Expand Down

0 comments on commit b7bed7c

Please sign in to comment.