Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_shutdown.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2018 The Bitcoin Core developers | # Copyright (c) 2018 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Test bitcoind shutdown.""" | """Test bitcoind shutdown.""" | ||||
from threading import Thread | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal, get_rpc_proxy | from test_framework.util import assert_equal, get_rpc_proxy | ||||
from threading import Thread | |||||
def test_long_call(node): | def test_long_call(node): | ||||
block = node.waitfornewblock() | block = node.waitfornewblock() | ||||
assert_equal(block['height'], 0) | assert_equal(block['height'], 0) | ||||
class ShutdownTest(BitcoinTestFramework): | class ShutdownTest(BitcoinTestFramework): | ||||
Show All 23 Lines |