mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
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:
@@ -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")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user