From 561d072e0590179f1c60bb2784077589812a05bb Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Wed, 15 Apr 2026 09:38:52 +0200 Subject: [PATCH] test: Add missing self.options.timeout_factor scale in tool_bitcoin_chainstate.py Apply the timeout factor inside the add_block function. Also, force named args for the two expected strings. Also, add trailing comma for style. Github-Pull: #35080 Rebased-From: fa02eb87df0b4a615a3e027711326f5506e5507a --- test/functional/tool_bitcoin_chainstate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/tool_bitcoin_chainstate.py b/test/functional/tool_bitcoin_chainstate.py index 7795b20df70..cc6a2228ad2 100755 --- a/test/functional/tool_bitcoin_chainstate.py +++ b/test/functional/tool_bitcoin_chainstate.py @@ -24,9 +24,9 @@ class BitcoinChainstateTest(BitcoinTestFramework): stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - text=True + text=True, ) - stdout, stderr = proc.communicate(input=input + "\n", timeout=5) + stdout, stderr = proc.communicate(input=input + "\n", timeout=5 * self.options.timeout_factor) self.log.debug("STDOUT: {0}".format(stdout.strip("\n"))) self.log.info("STDERR: {0}".format(stderr.strip("\n")))