mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
df-tests: test_io_logging
Move pid collection down to when dualopend is definitely dead
This commit is contained in:
committed by
Christian Decker
parent
609d509ca5
commit
09da171381
@@ -712,13 +712,10 @@ def test_io_logging(node_factory, executor):
|
||||
# Fundchannel manually so we get channeld pid.
|
||||
l1.fundwallet(10**6 + 1000000)
|
||||
l1.rpc.fundchannel(l2.info['id'], 10**6)['tx']
|
||||
pid1 = l1.subd_pid('channeld')
|
||||
|
||||
l1.daemon.wait_for_log('sendrawtx exit 0')
|
||||
l1.bitcoin.generate_block(1)
|
||||
l1.daemon.wait_for_log(' to CHANNELD_NORMAL')
|
||||
|
||||
pid2 = l2.subd_pid('channeld')
|
||||
l2.daemon.wait_for_log(' to CHANNELD_NORMAL')
|
||||
|
||||
fut = executor.submit(l1.pay, l2, 200000000)
|
||||
@@ -730,6 +727,7 @@ def test_io_logging(node_factory, executor):
|
||||
fut.result(10)
|
||||
|
||||
# Send it sigusr1: should turn off logging.
|
||||
pid1 = l1.subd_pid('channeld')
|
||||
subprocess.run(['kill', '-USR1', pid1])
|
||||
|
||||
l1.pay(l2, 200000000)
|
||||
@@ -745,6 +743,7 @@ def test_io_logging(node_factory, executor):
|
||||
for l in peerlog)
|
||||
|
||||
# Turn on in l2 channel logging.
|
||||
pid2 = l2.subd_pid('channeld')
|
||||
subprocess.run(['kill', '-USR1', pid2])
|
||||
l1.pay(l2, 200000000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user