@@ -355,7 +355,7 @@ def start_channels(connections):
355
355
)
356
356
357
357
358
- def test_hardmpp (node_factory ):
358
+ def test_hardmpp (node_factory , directory ):
359
359
"""
360
360
Topology:
361
361
1----2----4
@@ -379,17 +379,17 @@ def test_hardmpp(node_factory):
379
379
]
380
380
)
381
381
382
- with open ("/tmp/ l1-chans.txt" , "w" ) as f :
382
+ with open (os . path . join ( directory , " l1-chans.txt") , "w" ) as f :
383
383
print (json .dumps (l1 .rpc .listchannels ()), file = f )
384
384
385
385
inv = l4 .rpc .invoice ("any" , "any" , "description" )
386
386
l2 .rpc .call ("pay" , {"bolt11" : inv ["bolt11" ], "amount_msat" : 2000000000 })
387
387
l2 .wait_for_htlcs ()
388
388
assert l4 .rpc .listinvoices ()["invoices" ][0 ]["amount_received_msat" ] == 2000000000
389
389
390
- with open ("/tmp/ l2-peerchan.txt" , "w" ) as f :
390
+ with open (os . path . join ( directory , " l2-peerchan.txt") , "w" ) as f :
391
391
print (json .dumps (l2 .rpc .listpeerchannels ()), file = f )
392
- with open ("/tmp/ l3-peerchan.txt" , "w" ) as f :
392
+ with open (os . path . join ( directory , " l3-peerchan.txt") , "w" ) as f :
393
393
print (json .dumps (l3 .rpc .listpeerchannels ()), file = f )
394
394
395
395
inv2 = l6 .rpc .invoice ("1800000sat" , "inv2" , "description" )
0 commit comments