fix test_multi_pay_invoices

This commit is contained in:
Riccardo Balbo 2025-06-09 14:16:15 +02:00
commit eb0ac9d13d

View file

@ -627,6 +627,7 @@ async def test_multi_pay_invoices():
assert not error
assert result["invoice"]
invoice3 = result["invoice"]
invoice3_payhash = result["payment_hash"]
await wallet3.send_event(
"multi_pay_invoice",
@ -645,7 +646,7 @@ async def test_multi_pay_invoices():
assert result["preimage"]
elif d_tag == "invoice2":
assert result["preimage"]
elif d_tag == invoice3:
elif d_tag == invoice3_payhash:
assert result["preimage"]
else:
raise AssertionError("Unexpected d tag")