mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-10 13:20:38 +02:00
test: Added coverage to the waitfornewblock rpc
Added a test for the Negative timeout error if the rpc is given a negative value for its timeout arg
This commit is contained in:
parent
b432e36742
commit
93747d934b
@ -549,6 +549,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
# The chain has probably already been restored by the time reconsiderblock returns,
|
||||
# but poll anyway.
|
||||
self.wait_until(lambda: node.waitfornewblock(timeout=100)['hash'] == current_hash)
|
||||
assert_raises_rpc_error(-1, "Negative timeout", node.waitfornewblock, -1)
|
||||
|
||||
def _test_waitforblockheight(self):
|
||||
self.log.info("Test waitforblockheight")
|
||||
|
Loading…
x
Reference in New Issue
Block a user