Increased RPC timeout for functional tests.

This commit is contained in:
Jianping Wu 2019-02-09 14:52:22 -08:00
parent e86e3a33a8
commit 1c9ce882e6

View File

@ -27,7 +27,7 @@ from .util import (
# For Python 3.4 compatibility # For Python 3.4 compatibility
JSONDecodeError = getattr(json, "JSONDecodeError", ValueError) JSONDecodeError = getattr(json, "JSONDecodeError", ValueError)
BITCOIND_PROC_WAIT_TIMEOUT = 60 BITCOIND_PROC_WAIT_TIMEOUT = 180
class TestNode(): class TestNode():
"""A class for representing a bitcoind node under test. """A class for representing a bitcoind node under test.
@ -50,8 +50,8 @@ class TestNode():
if timewait: if timewait:
self.rpc_timeout = timewait self.rpc_timeout = timewait
else: else:
# Wait for up to 60 seconds for the RPC server to respond # Wait for up to 180 seconds for the RPC server to respond
self.rpc_timeout = 60 self.rpc_timeout = 180
if binary is None: if binary is None:
self.binary = os.getenv("LITECOIND", "kevacoind") self.binary = os.getenv("LITECOIND", "kevacoind")
else: else: