1
0

try fo fix mpp unittests flakiness by waiting an extra iteration

This commit is contained in:
ThomasV
2024-11-19 13:34:26 +01:00
parent 81aed0f6c9
commit 19726c4427

View File

@@ -1765,6 +1765,10 @@ class TestPeerForwarding(TestPeer):
if result:
self.assertEqual(PR_PAID, dave_w.get_payment_status(lnaddr.paymenthash))
# check mpp is cleaned up
async with OldTaskGroup() as g:
for peer in peers:
await g.spawn(peer.wait_one_htlc_switch_iteration())
# wait another iteration
async with OldTaskGroup() as g:
for peer in peers:
await g.spawn(peer.wait_one_htlc_switch_iteration())