Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny committed Dec 27, 2024
1 parent 24e9cec commit 6670f58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ydb/tests/workloads/olap_workload/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ def get_workload_thread_funcs(self):


class WorkloadRunner:
def __init__(self, client, args):
def __init__(self, client, name, duration, allow_nullables_in_pk):
self.client = client
self.name = args.path
self.tables_prefix = "/".join([self.client.database, self.name])
self.duration = args.duration
self.allow_nullables_in_pk = args.allow_nullables_in_pk
self.allow_nullables_in_pk = allow_nullables_in_pk

def __enter__(self):
self._cleanup()
Expand Down Expand Up @@ -336,5 +336,5 @@ def run(self):
args = parser.parse_args()
client = YdbClient(args.endpoint, args.database, True)
client.wait_connection()
with WorkloadRunner(client, args) as runner:
with WorkloadRunner(client, args.path, args.duration, args.allow_nullables_in_pk) as runner:
runner.run()
1 change: 1 addition & 0 deletions ydb/tests/workloads/olap_workload/tests/test_workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def test(self):
"--endpoint", f"grpc://localhost:{self.cluster.nodes[1].grpc_port}",
"--database=/Root",
"--duration", "120",
"--allow-nullables-in-pk", "1",
],
wait=True
)

0 comments on commit 6670f58

Please sign in to comment.