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

Function test_plugin_fail_on_startup

tests/test_plugin.py:324–333  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

322
323
324def test_plugin_fail_on_startup(node_factory):
325 for crash in ('during_init', 'before_start', 'during_getmanifest'):
326 os.environ['BROKEN_CRASH'] = crash
327 n = node_factory.get_node(options={'plugin': os.path.join(os.getcwd(), "tests/plugins/broken.py")})
328 # This can happen before 'Server started with public key' msg
329 n.daemon.logsearch_start = 0
330 n.daemon.wait_for_log('plugin-broken.py: Traceback')
331
332 # Make sure they don't die *after* the message!
333 time.sleep(30)
334
335
336def test_plugin_disable(node_factory):

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
wait_for_logMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected