electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 4250f3b8a19f1f56a5eba21b1c3d33e9f2b17924
parent 05fd42454842bdce853e96d6b3ffbb043960f7c4
Author: ThomasV <thomasv@electrum.org>
Date:   Wed, 10 Mar 2021 21:00:58 +0100

test_lnpeer: use 2s MPP_TIMEOUT, and split test_multipart_payment_with_timeout

Diffstat:
Melectrum/tests/test_lnpeer.py | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/electrum/tests/test_lnpeer.py b/electrum/tests/test_lnpeer.py @@ -113,7 +113,8 @@ class MockWallet: class MockLNWallet(Logger, NetworkRetryManager[LNPeerAddr]): - MPP_EXPIRY = 1 + MPP_EXPIRY = 2 # HTLC timestamps are cast to int, so this cannot be 1 + def __init__(self, *, local_keypair: Keypair, chans: Iterable['Channel'], tx_queue, name): self.name = name Logger.__init__(self) @@ -779,6 +780,7 @@ class TestPeer(ElectrumTestCase): with self.assertRaises(NoPathFound): run(self._run_mpp(graph, attempts=1)) graph.w_b.enable_htlc_forwarding.set() + run(asyncio.sleep(1)) # sleep to that the other htlc can fail with self.assertRaises(PaymentDone): run(self._run_mpp(graph, attempts=1))