Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/test_renepay.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def start_channels(connections):
)


def test_hardmpp(node_factory):
def test_hardmpp(node_factory, directory):
"""
Topology:
1----2----4
Expand All @@ -379,17 +379,17 @@ def test_hardmpp(node_factory):
]
)

with open("/tmp/l1-chans.txt", "w") as f:
with open(os.path.join(directory, "l1-chans.txt"), "w") as f:
print(json.dumps(l1.rpc.listchannels()), file=f)

inv = l4.rpc.invoice("any", "any", "description")
l2.rpc.call("pay", {"bolt11": inv["bolt11"], "amount_msat": 2000000000})
l2.wait_for_htlcs()
assert l4.rpc.listinvoices()["invoices"][0]["amount_received_msat"] == 2000000000

with open("/tmp/l2-peerchan.txt", "w") as f:
with open(os.path.join(directory, "l2-peerchan.txt"), "w") as f:
print(json.dumps(l2.rpc.listpeerchannels()), file=f)
with open("/tmp/l3-peerchan.txt", "w") as f:
with open(os.path.join(directory, "l3-peerchan.txt"), "w") as f:
print(json.dumps(l3.rpc.listpeerchannels()), file=f)

inv2 = l6.rpc.invoice("1800000sat", "inv2", "description")
Expand Down
Loading