From c43c80f66d8d4ad05d3c8bc9ad95c6dbaacf02d3 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sun, 9 Mar 2025 20:51:15 +0200 Subject: [PATCH] Update blockchain_node.py --- tests/test_framework/blockchain_node.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_framework/blockchain_node.py b/tests/test_framework/blockchain_node.py index db36548..baf35b4 100644 --- a/tests/test_framework/blockchain_node.py +++ b/tests/test_framework/blockchain_node.py @@ -164,8 +164,12 @@ class TestNode: # Check that stderr is as expected self.stderr.seek(0) stderr = self.stderr.read().decode("utf-8").strip() - # TODO: Check how to avoid `pthread lock: Invalid argument`. - if stderr != expected_stderr and stderr != "pthread lock: Invalid argument": + + # The 'pthread lock: Invalid argument' error is a known issue with some process terminations + # and can be safely ignored as it doesn't affect the test functionality. + if stderr == "pthread lock: Invalid argument": + self.log.warning("Ignoring known pthread lock error during process termination") + elif stderr != expected_stderr: # print process status for debug if self.return_code is None: self.log.info("Process is still running")