(node_factory)
| 4627 | |
| 4628 | |
| 4629 | def test_renepay_not_important(node_factory): |
| 4630 | # I mean, it's *important*, it's just not "mission-critical" just yet! |
| 4631 | l1 = node_factory.get_node() |
| 4632 | |
| 4633 | assert 'cln-renepay' not in l1.rpc.listconfigs()['configs']['important-plugin']['values_str'] |
| 4634 | assert [p['active'] for p in l1.rpc.plugin_list()['plugins'] if p['name'].endswith('cln-renepay')] == [True] |
| 4635 | |
| 4636 | # We can kill it without cln dying. |
| 4637 | line = l1.daemon.is_in_log(r'.*started\([0-9]*\).*plugins/cln-renepay') |
| 4638 | pidstr = re.search(r'.*started\(([0-9]*)\).*plugins/cln-renepay', line).group(1) |
| 4639 | os.kill(int(pidstr), signal.SIGKILL) |
| 4640 | l1.daemon.wait_for_log('plugin-cln-renepay: Killing plugin: exited during normal operation') |
| 4641 | |
| 4642 | # But we don't shut down, and we can restrart. |
| 4643 | assert [p for p in l1.rpc.plugin_list()['plugins'] if p['name'].endswith('cln-renepay')] == [] |
| 4644 | l1.rpc.plugin_start(os.path.join(os.getcwd(), 'plugins/cln-renepay')) |
| 4645 | |
| 4646 | |
| 4647 | @unittest.skipIf(VALGRIND, "Valgrind doesn't handle bad #! lines the same") |
nothing calls this directly
no test coverage detected