0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-05 14:06:27 -05:00

test: Fix TypeError in wait_for_debug_log

Traceback:

print_log = " - " + "\n - ".join(log.splitlines())
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, bytes found
This commit is contained in:
MarcoFalke 2023-03-20 11:56:18 +01:00
parent 50171df26c
commit 33337eb860
No known key found for this signature in database

View file

@ -469,7 +469,7 @@ class TestNode():
return
if time.time() >= time_end:
print_log = " - " + "\n - ".join(log.splitlines())
print_log = " - " + "\n - ".join(log.decode("utf8", errors="replace").splitlines())
break
# No sleep here because we want to detect the message fragment as fast as