(node_factory)
| 3637 | |
| 3638 | |
| 3639 | def test_shutdown(node_factory): |
| 3640 | # Fail, in that it will exit before cleanup. |
| 3641 | l1 = node_factory.get_node(may_fail=True) |
| 3642 | if not VALGRIND: |
| 3643 | leaks = l1.rpc.dev_memleak()['leaks'] |
| 3644 | if len(leaks): |
| 3645 | raise Exception("Node {} has memory leaks: {}" |
| 3646 | .format(l1.daemon.lightning_dir, leaks)) |
| 3647 | l1.rpc.stop() |
| 3648 | |
| 3649 | |
| 3650 | @pytest.mark.parametrize("old_hsmsecret", [False, True]) |
nothing calls this directly
no test coverage detected