Skip to content

Commit ef38863

Browse files
author
DvirDukhan
committed
Added option to parser
1 parent 969b54d commit ef38863

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

RLTest/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ def do_normal_conn(self, line):
133133
'--oss_password', default=None,
134134
help='set redis password, relevant for oss and oss-cluster environment')
135135

136+
parser.add_argument(
137+
'--cluster_node_timeout', default=5000,
138+
help='sets the node timeout on cluster')
139+
136140
parser.add_argument(
137141
'--cluster_credentials',
138142
help='enterprise cluster cluster_credentials "username:password", relevent only when running with cluster_existing-env')
@@ -396,6 +400,7 @@ def __init__(self):
396400
Defaults.tls_key_file = self.args.tls_key_file
397401
Defaults.tls_ca_cert_file = self.args.tls_ca_cert_file
398402
Defaults.oss_password = self.args.oss_password
403+
Defaults.cluster_node_timeout = self.args.cluster_node_timeout
399404
if Defaults.use_unix and Defaults.use_slaves:
400405
raise Exception('Cannot use unix sockets with slaves')
401406

0 commit comments

Comments
 (0)