diff --git a/test/functional/rpc_blockchain.py b/test/functional/rpc_blockchain.py index 862786affd7..224f802bb95 100755 --- a/test/functional/rpc_blockchain.py +++ b/test/functional/rpc_blockchain.py @@ -549,6 +549,7 @@ def _test_waitforblock(self): # 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")