mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
tests/test_plugin.py: Add test for --important-plugin.
This commit is contained in:
committed by
neil saitug
parent
a847487bbe
commit
48f36904c8
14
tests/plugins/suicidal_plugin.py
Executable file
14
tests/plugins/suicidal_plugin.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from pyln.client import Plugin
|
||||
import os
|
||||
|
||||
plugin = Plugin()
|
||||
|
||||
|
||||
@plugin.method("die")
|
||||
def die():
|
||||
os._exit(1)
|
||||
|
||||
|
||||
plugin.run()
|
||||
Reference in New Issue
Block a user