mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
Terminate LightningD if, for some reason, it doesn't start properly. This cleans up the environment for future test runs.
This commit is contained in:
parent
71581ff96e
commit
859070a5ed
1 changed files with 6 additions and 1 deletions
|
@ -129,7 +129,12 @@ class NodeFactory(object):
|
|||
'--log-file={}/valgrind-errors.%p'.format(node.daemon.lightning_dir)
|
||||
] + node.daemon.cmd_line
|
||||
|
||||
node.daemon.start()
|
||||
try:
|
||||
node.daemon.start()
|
||||
except:
|
||||
node.daemon.stop()
|
||||
raise
|
||||
|
||||
# Cache `getinfo`, we'll be using it a lot
|
||||
node.info = node.rpc.getinfo()
|
||||
return node
|
||||
|
|
Loading…
Add table
Reference in a new issue