MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / wait_until_stopped

Method wait_until_stopped

test/functional/test_framework/test_node.py:525–528  ·  view source on GitHub ↗
(self, *, timeout=BITCOIND_PROC_WAIT_TIMEOUT, expect_error=False, **kwargs)

Source from the content-addressed store, hash-verified

523 return True
524
525 def wait_until_stopped(self, *, timeout=BITCOIND_PROC_WAIT_TIMEOUT, expect_error=False, **kwargs):
526 if "expected_ret_code" not in kwargs:
527 kwargs["expected_ret_code"] = 1 if expect_error else 0 # Whether node shutdown return EXIT_FAILURE or EXIT_SUCCESS
528 self.wait_until(lambda: self.is_node_stopped(**kwargs), timeout=timeout)
529
530 def kill_process(self):
531 self.process.kill()

Callers 7

stop_nodeMethod · 0.95
kill_processMethod · 0.95
run_testMethod · 0.80
test_norpccookiefileMethod · 0.80
break_wait_testMethod · 0.80
_test_stopatheightMethod · 0.80
stop_nodesMethod · 0.80

Calls 2

wait_untilMethod · 0.95
is_node_stoppedMethod · 0.95

Tested by

no test coverage detected