Sorry that I just find a minor bug in the test. msg is used to indicate that the transaction should be rejected. However, before this fix, even if the tx was accepted with a non-empty msg, the test would still pass.
[qa] fix nulldummy test #8841
pull jl2012 wants to merge 1 commits into bitcoin:master from jl2012:nulldummytest changing 1 files +2 −0-
jl2012 commented at 4:23 PM on September 29, 2016: contributor
- laanwj added the label Tests on Sep 29, 2016
- MarcoFalke added the label Needs backport on Sep 29, 2016
- MarcoFalke added this to the milestone 0.13.1 on Sep 29, 2016
-
in qa/rpc-tests/nulldummy.py:None in 8623ec06fc outdated
118 | @@ -119,6 +119,9 @@ def tx_submit(self, node, tx, msg = ""): 119 | node.sendrawtransaction(bytes_to_hex_str(tx.serialize_with_witness()), True) 120 | except JSONRPCException as exp: 121 | assert_equal(exp.error["message"], msg) 122 | + else: 123 | + if (msg): 124 | + assert(False)
MarcoFalke commented at 5:30 PM on September 29, 2016:To print the message on failure, what about something like
assert_equal('', msg)
jl2012 commented at 5:35 PM on September 29, 2016:revise as suggested. Thanks
jl2012 force-pushed on Sep 29, 2016Fix nulldummy.py test 46a4774d2bjl2012 force-pushed on Sep 29, 2016MarcoFalke commented at 6:53 PM on September 29, 2016: memberutACK 46a4774d2bb9cc863e43507212ef989fa10d56d4
laanwj merged this on Sep 30, 2016laanwj closed this on Sep 30, 2016laanwj referenced this in commit 83998b52d0 on Sep 30, 2016MarcoFalke referenced this in commit 3e4abb5025 on Oct 3, 2016MarcoFalke removed the label Needs backport on Oct 13, 2016codablock referenced this in commit 4bb0cdf400 on Jan 30, 2018andvgal referenced this in commit 204cbf8635 on Jan 6, 2019CryptoCentric referenced this in commit 8ba834ea6f on Feb 28, 2019CryptoCentric referenced this in commit 48dac27042 on Mar 2, 2019MarcoFalke locked this on Sep 8, 2021ContributorsLabelsMilestone
0.13.1
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-03 03:15 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-03 03:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me