aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/rpcnamedargs.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-02-07 09:56:53 -0500
committerJohn Newbery <john@johnnewbery.com>2017-02-08 10:24:02 -0500
commit9db8eecac1c713c760c0217b6acb7455c657fa8b (patch)
tree02faa45b0da7cd2271cf4a3b089e78dd0e308f4d /qa/rpc-tests/rpcnamedargs.py
parent729de15b6365face6ae9e12a03624da33a6302f0 (diff)
downloadbitcoin-9db8eecac1c713c760c0217b6acb7455c657fa8b.tar.xz
Fix RPC failure testing
Make sure that RPC tests are actually checking failures correctly by: - Catching JSON RPC exceptions and verifying the error codes and messages. - Failing the test case if the JSON RPC exception isn't raised.
Diffstat (limited to 'qa/rpc-tests/rpcnamedargs.py')
-rwxr-xr-xqa/rpc-tests/rpcnamedargs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/rpcnamedargs.py b/qa/rpc-tests/rpcnamedargs.py
index 0484204668..da2d8f040f 100755
--- a/qa/rpc-tests/rpcnamedargs.py
+++ b/qa/rpc-tests/rpcnamedargs.py
@@ -37,7 +37,7 @@ class NamedArgumentTest(BitcoinTestFramework):
h = node.help(command='getinfo')
assert(h.startswith('getinfo\n'))
- assert_raises_jsonrpc(-8, node.help, random='getinfo')
+ assert_raises_jsonrpc(-8, 'Unknown named parameter', node.help, random='getinfo')
h = node.getblockhash(height=0)
node.getblock(blockhash=h)