1
0

tests: commands: fix assertRaises in test_hold_invoice_commands

This commit is contained in:
SomberNight
2025-08-01 14:41:28 +00:00
parent c23cc29caa
commit 60eb437f99

View File

@@ -476,6 +476,7 @@ class TestCommandsTestnet(ElectrumTestCase):
preimage=preimage,
wallet=wallet,
)
with self.assertRaises(AssertionError):
# cancelling an unknown invoice should raise
await cmds.cancel_hold_invoice(
payment_hash=sha256(urandom(32)).hex(),