Skip to content

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

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2303-test-type-error-bytes-🤓
Mar 22, 2023

Hidden character warning

The head ref may contain hidden characters: "2303-test-type-error-bytes-\ud83e\udd13"
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2303-test-type-error-bytes-🤓

Conversation

@maflcko

@maflcko maflcko commented Mar 20, 2023

Copy link
Copy Markdown
Member

No description provided.

Traceback:

print_log = " - " + "\n - ".join(log.splitlines())
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, bytes found
@DrahtBot

DrahtBot commented Mar 20, 2023 •

Copy link
Copy Markdown
Contributor

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

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.

@DrahtBot DrahtBot added the Tests label Mar 20, 2023
@maflcko

maflcko commented Mar 20, 2023

Copy link
Copy Markdown
Member Author

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',

@ismaelsadeeq

ismaelsadeeq commented Mar 21, 2023 •

Copy link
Copy Markdown
Member

tested Ack 33337eb ,tricky one! I have manually test the code:+1:

@davidgumberg

Copy link
Copy Markdown
Contributor

tACK 33337eb

@fanquake
fanquake merged commit 6e69fea into bitcoin:master Mar 22, 2023
@maflcko
maflcko deleted the 2303-test-type-error-bytes-🤓 branch March 22, 2023 10:02
@bitcoin bitcoin locked and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants