tests: Apply --timeoutscale option to rpc timeouts (#3982)

This commit is contained in:
UdjinM6 2021-02-08 16:39:05 +03:00 committed by GitHub
parent 4c1a04a254
commit f22d5e2aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ from .util import (
wait_until, wait_until,
p2p_port, p2p_port,
get_chain_folder, get_chain_folder,
Options
) )
# For Python 3.4 compatibility # For Python 3.4 compatibility
@ -62,6 +63,7 @@ class TestNode():
else: else:
# Wait for up to 60 seconds for the RPC server to respond # Wait for up to 60 seconds for the RPC server to respond
self.rpc_timeout = 60 self.rpc_timeout = 60
self.rpc_timeout *= Options.timeout_scale
self.binary = bitcoind self.binary = bitcoind
self.stderr = stderr self.stderr = stderr
self.coverage_dir = coverage_dir self.coverage_dir = coverage_dir