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

Function test_shutdown

tests/test_closing.py:3639–3647  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

3637
3638
3639def 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])

Callers

nothing calls this directly

Calls 3

dev_memleakMethod · 0.80
get_nodeMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected