test: Fix TypeError (expected str instance, bytes found) in wait_for_debug_log #27280

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2303-test-type-error-bytes-🤓 changing 1 files +1 −1
  1. maflcko commented at 10:55 AM on March 20, 2023: member

    No description provided.

  2. test: Fix TypeError in wait_for_debug_log
    Traceback:
    
    print_log = " - " + "\n - ".join(log.splitlines())
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: sequence item 0: expected str instance, bytes found
    33337eb860
  3. DrahtBot commented at 10:55 AM on March 20, 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 davidgumberg

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

  4. DrahtBot added the label Tests on Mar 20, 2023
  5. maflcko commented at 10:55 AM on March 20, 2023: member

    Can be tested with:

    diff --git a/test/functional/feature_init.py b/test/functional/feature_init.py
    index 70a802dc58..1d1c6a64b6 100755
    --- a/test/functional/feature_init.py
    +++ b/test/functional/feature_init.py
    @@ -52,7 +52,7 @@ class InitStressTest(BitcoinTestFramework):
                 assert_equal(200, node.getblockcount())
     
             lines_to_terminate_after = [
    -            b'Validating signatures for all blocks',
    +            b'.Validating signatures for all blocks',
                 b'scheduler thread start',
                 b'Starting HTTP server',
                 b'Loading P2P addresses',
    
  6. ismaelsadeeq commented at 10:21 AM on March 21, 2023: member
  7. maflcko assigned fanquake on Mar 22, 2023
  8. fanquake merged this on Mar 22, 2023
  9. fanquake closed this on Mar 22, 2023

  10. maflcko deleted the branch on Mar 22, 2023
  11. sidhujag referenced this in commit d6ec811e31 on Mar 23, 2023
  12. bitcoin locked this on Mar 21, 2024

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 06:14 UTC

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