MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_important_plugin_shutdown

Function test_important_plugin_shutdown

tests/test_plugin.py:4772–4778  ·  view source on GitHub ↗

We can shutdown an important plugin (as long as it's dynamic) without dying

(node_factory)

Source from the content-addressed store, hash-verified

4770
4771
4772def test_important_plugin_shutdown(node_factory):
4773 """We can shutdown an important plugin (as long as it's dynamic) without dying"""
4774
4775 l1 = node_factory.get_node()
4776
4777 l1.rpc.plugin_stop("pay")
4778 l1.rpc.plugin_start(os.path.join(os.getcwd(), 'plugins/pay'))
4779
4780
4781@unittest.skipIf(VALGRIND, "It does not play well with prompt and key derivation.")

Callers

nothing calls this directly

Calls 4

plugin_stopMethod · 0.80
plugin_startMethod · 0.80
joinMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected