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

Function test_fast_shutdown

tests/test_misc.py:4468–4484  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

4466
4467
4468def test_fast_shutdown(node_factory):
4469 l1 = node_factory.get_node(start=False)
4470
4471 l1.daemon.start(wait_for_initialized=False)
4472
4473 start_time = time.time()
4474 # Keep trying until this succeeds (socket may not exist yet!)
4475 while True:
4476 if time.time() > start_time + TIMEOUT:
4477 raise ValueError("Timeout while waiting for stop to work!")
4478 try:
4479 l1.rpc.stop()
4480 except FileNotFoundError:
4481 continue
4482 except ConnectionRefusedError:
4483 continue
4484 break
4485
4486
4487def test_config_whitespace(node_factory):

Callers

nothing calls this directly

Calls 3

get_nodeMethod · 0.45
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected