test: Check expected_stderr after stop #28028

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2307-test-stderr- changing 2 files +15 −14
  1. maflcko commented at 12:17 PM on July 4, 2023: member

    This fixes a bug where stderr wasn't checked for the shutdown sequence.

    Fix that by waiting for the shutdown to finish and then check stderr.

  2. DrahtBot commented at 12:17 PM on July 4, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK theStack

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  3. DrahtBot added the label Tests on Jul 4, 2023
  4. maflcko force-pushed on Jul 4, 2023
  5. DrahtBot added the label CI failed on Jul 4, 2023
  6. fanquake requested review from theStack on Jul 4, 2023
  7. maflcko force-pushed on Jul 4, 2023
  8. DrahtBot removed the label CI failed on Jul 6, 2023
  9. in test/functional/test_framework/test_node.py:358 in 222280fcef outdated
     362 | -        self.stdout.close()
     363 | -        self.stderr.close()
     364 | -
     365 |          del self.p2ps[:]
     366 |  
     367 | +        assert not expected_stderr or wait_until_stopped  # Must wait to check stderr
    


    theStack commented at 11:18 AM on July 9, 2023:

    nit, logically equivalent, but likely less ambiguous for the reader's eyes:

            assert (not expected_stderr) or wait_until_stopped  # Must wait to check stderr
    

    maflcko commented at 1:59 PM on July 10, 2023:

    thx, done

  10. theStack commented at 11:24 AM on July 9, 2023: contributor

    Code looks good to me, will test locally tomorrow.

  11. test: Check expected_stderr after stop faf902858d
  12. maflcko force-pushed on Jul 10, 2023
  13. theStack approved
  14. theStack commented at 4:40 PM on July 10, 2023: contributor

    ACK faf902858d38150caa8991b0ab9d7cfee2905684

    Makes sense to do the stderr check at the very end after shutdown.

  15. fanquake merged this on Jul 11, 2023
  16. fanquake closed this on Jul 11, 2023

  17. maflcko deleted the branch on Jul 11, 2023
  18. sidhujag referenced this in commit 4e2f49f42b on Jul 12, 2023
  19. bitcoin locked this on Dec 5, 2024
Labels

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-04-24 09:14 UTC

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