[qa] fix nulldummy test #8841

pull jl2012 wants to merge 1 commits into bitcoin:master from jl2012:nulldummytest changing 1 files +2 −0
  1. jl2012 commented at 4:23 pm on September 29, 2016: contributor
    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.
  2. laanwj added the label Tests on Sep 29, 2016
  3. MarcoFalke added the label Needs backport on Sep 29, 2016
  4. MarcoFalke added this to the milestone 0.13.1 on Sep 29, 2016
  5. in qa/rpc-tests/nulldummy.py: 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

    0assert_equal('', msg)
    

    jl2012 commented at 5:35 pm on September 29, 2016:
    revise as suggested. Thanks
  6. jl2012 force-pushed on Sep 29, 2016
  7. Fix nulldummy.py test 46a4774d2b
  8. jl2012 force-pushed on Sep 29, 2016
  9. MarcoFalke commented at 6:53 pm on September 29, 2016: member
    utACK 46a4774d2bb9cc863e43507212ef989fa10d56d4
  10. laanwj merged this on Sep 30, 2016
  11. laanwj closed this on Sep 30, 2016

  12. laanwj referenced this in commit 83998b52d0 on Sep 30, 2016
  13. MarcoFalke referenced this in commit 3e4abb5025 on Oct 3, 2016
  14. MarcoFalke removed the label Needs backport on Oct 13, 2016
  15. codablock referenced this in commit 4bb0cdf400 on Jan 30, 2018
  16. andvgal referenced this in commit 204cbf8635 on Jan 6, 2019
  17. CryptoCentric referenced this in commit 8ba834ea6f on Feb 28, 2019
  18. CryptoCentric referenced this in commit 48dac27042 on Mar 2, 2019
  19. MarcoFalke locked this on Sep 8, 2021


jl2012 MarcoFalke

Labels
Tests

Milestone
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: 2024-10-05 04:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me