mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
pytest: Add a test to reproduce #3748
This commit is contained in:
committed by
Rusty Russell
parent
160c564e5f
commit
3d6c4e93b3
14
tests/plugins/htlc_accepted-crash.py
Executable file
14
tests/plugins/htlc_accepted-crash.py
Executable 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()
|
||||
Reference in New Issue
Block a user