pytest: Add a test to reproduce #3748

This commit is contained in:
Christian Decker
2020-09-09 14:15:01 +02:00
committed by Rusty Russell
parent 160c564e5f
commit 3d6c4e93b3
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
from pyln.client import Plugin
plugin = Plugin()
@plugin.hook('htlc_accepted')
def on_htlc_accepted(plugin, **kwargs):
plugin.log("Crashing on purpose...")
raise ValueError()
plugin.run()