| 4466 | |
| 4467 | |
| 4468 | def 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 | |
| 4487 | def test_config_whitespace(node_factory): |