(node_factory)
| 322 | |
| 323 | |
| 324 | def 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 | |
| 336 | def test_plugin_disable(node_factory): |
nothing calls this directly
no test coverage detected