Skip to content

Commit 33337eb

Browse files
author
MarcoFalke
committed
test: Fix TypeError in wait_for_debug_log
Traceback: print_log = " - " + "\n - ".join(log.splitlines()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: sequence item 0: expected str instance, bytes found
1 parent 50171df commit 33337eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/functional/test_framework/test_node.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def wait_for_debug_log(self, expected_msgs, timeout=60):
469469
return
470470

471471
if time.time() >= time_end:
472-
print_log = " - " + "\n - ".join(log.splitlines())
472+
print_log = " - " + "\n - ".join(log.decode("utf8", errors="replace").splitlines())
473473
break
474474

475475
# No sleep here because we want to detect the message fragment as fast as

0 commit comments

Comments
 (0)