Skip to content

Commit 9fdedbc

Browse files
committed
fix
1 parent afb1566 commit 9fdedbc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ydb/tests/library/harness/kikimr_config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ def __init__(
186186
self.__grpc_tls_key = key_pem
187187
self.__grpc_tls_cert = cert_pem
188188

189-
if not binary_paths:
190-
binary_paths = [kikimr_driver_path()]
191189
self.__binary_paths = binary_paths
192190
rings_count = 3 if erasure == Erasure.MIRROR_3_DC else 1
193191
if nodes is None:
@@ -526,7 +524,10 @@ def output_path(self):
526524
return self.__output_path
527525

528526
def get_binary_path(self, node_id):
529-
return self.__binary_paths[node_id % len(self.__binary_paths)]
527+
binary_paths = self.__binary_paths
528+
if not binary_paths:
529+
binary_paths = [kikimr_driver_path()]
530+
return binary_paths[node_id % len(binary_paths)]
530531

531532
def write_tls_data(self):
532533
if self.__grpc_ssl_enable:

0 commit comments

Comments
 (0)