pytest: Change the channel persistence test to add inflight HTLCs

Now that we have HTLC persistence we'd also like to test it. This
kills the second node in the middle of an HTLC, it'll recover and
finish the flow.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2017-09-30 22:41:53 +02:00
committed by Rusty Russell
parent 11903aed6c
commit f5a412d90d
2 changed files with 28 additions and 16 deletions

View File

@@ -235,7 +235,7 @@ class LightningD(TailableProc):
]
self.cmd_line += ["--{}={}".format(k, v) for k, v in LIGHTNINGD_CONFIG.items()]
self.prefix = 'lightningd'
self.prefix = 'lightningd(%d)' % (port)
if not os.path.exists(lightning_dir):
os.makedirs(lightning_dir)