From 7caa6ccf57bd0861a6fecfc11ac7d05a7b14272d Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 28 Jun 2023 13:22:24 +0200 Subject: [PATCH] test_lnpeer: fix variable names after rename --- electrum/tests/test_lnpeer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/tests/test_lnpeer.py b/electrum/tests/test_lnpeer.py index 964899b19..f78c04603 100644 --- a/electrum/tests/test_lnpeer.py +++ b/electrum/tests/test_lnpeer.py @@ -762,7 +762,7 @@ class TestPeer(ElectrumTestCase): payment_hash = lnaddr.paymenthash preimage = bytes.fromhex(w2.preimages.pop(payment_hash.hex())) def cb(payment_hash): - if not test_timeout: + if not test_hold_timeout: w2.save_preimage(payment_hash, preimage) timeout = 1 if test_hold_timeout else 60 w2.register_callback_for_hold_invoice(payment_hash, cb, timeout) @@ -815,9 +815,9 @@ class TestPeer(ElectrumTestCase): await self._test_simple_payment(test_trampoline=test_trampoline, test_hold_invoice=True) async def test_simple_payment_with_hold_invoice_timing_out(self): - for trampoline in [False, True]: + for test_trampoline in [False, True]: with self.assertRaises(PaymentFailure): - await self._test_simple_payment(trampoline=trampoline, test_hold_invoice=True, test_timeout=True) + await self._test_simple_payment(test_trampoline=test_trampoline, test_hold_invoice=True, test_hold_timeout=True) @needs_test_with_all_chacha20_implementations async def test_payment_race(self):