-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Fix RPC failure testing (continuation of #9707) #9842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for the cleanup. Factor out the try/catches makes the tests much more readable. |
qa/rpc-tests/blockchain.py
Outdated
| assert_is_hash_string, | ||
| start_nodes, | ||
| connect_nodes_bi, | ||
| connect_nodes_bi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need to remove the coma here.
|
rebased and reverted the comma removal: jnewbery@c3d6c83 / https://github.com/jnewbery/bitcoin/tree/pr9842.2 |
|
oops. Merge issues from priority removal. Should be fixed now. |
cff1b40 to
364db21
Compare
|
rebased |
Commit 9db8eec improved the assert_raises_jsonrpc() function for better testing of RPC failure modes. This commit completes the job by removing remaining broken try-except RPC testing from the individual test cases and replacing it with calls to assert_raises_jsonrpc().
364db21 to
c9bd0f6
Compare
|
rebased. Any chance of getting this merged soon? |
|
utACK c9bd0f6 |
…9707) c9bd0f6 Fix RPC failure testing (2 of 2) (John Newbery) Tree-SHA512: df30e6e85abe8c4e12910dc60699f1201e9c243457abd738c1fdeac45f0ff05c674f68619ad9a47c847ec557954007d672cd89d3a9a3b2398dd188d9ffa6dcc9 s/serialize_with_witness/serialize/ miss a tx_submit -> sendrawtransaction dropped dip4 Fix tests Signed-off-by: Pasta <[email protected]> Fix file permissions
Commit 9db8eec improved the
assert_raises_jsonrpc() function for better testing of RPC failure
modes. This commit continues the job by removing remaining broken
try-except RPC testing from individual test cases and replacing it
with calls to assert_raises_jsonrpc().
Note that this does not fully complete the job. This commit replaces the try/except code with assert_raises_jsonrpc() only for those test cases where no changes to bitcoind were required (ie the test cases weren't necessarily fully testing the behaviour, but the behaviour was correct anyway). For any test cases where fixing the test code has revealed bugs or inconsistencies, I'll raise a separate issue/PR (eg #9738, #9714, #9841, #9710). There are a few more of those to come.