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: fa02eb87df
This commit is contained in:
MarcoFalke
2026-04-15 09:38:52 +02:00
committed by fanquake
parent c5bf64408c
commit 561d072e05

View File

@@ -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")))