Skip to content

Commit 6670f58

Browse files
committed
fixes
1 parent 24e9cec commit 6670f58

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ydb/tests/workloads/olap_workload/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ def get_workload_thread_funcs(self):
284284

285285

286286
class WorkloadRunner:
287-
def __init__(self, client, args):
287+
def __init__(self, client, name, duration, allow_nullables_in_pk):
288288
self.client = client
289289
self.name = args.path
290290
self.tables_prefix = "/".join([self.client.database, self.name])
291291
self.duration = args.duration
292-
self.allow_nullables_in_pk = args.allow_nullables_in_pk
292+
self.allow_nullables_in_pk = allow_nullables_in_pk
293293

294294
def __enter__(self):
295295
self._cleanup()
@@ -336,5 +336,5 @@ def run(self):
336336
args = parser.parse_args()
337337
client = YdbClient(args.endpoint, args.database, True)
338338
client.wait_connection()
339-
with WorkloadRunner(client, args) as runner:
339+
with WorkloadRunner(client, args.path, args.duration, args.allow_nullables_in_pk) as runner:
340340
runner.run()

ydb/tests/workloads/olap_workload/tests/test_workload.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def test(self):
2929
"--endpoint", f"grpc://localhost:{self.cluster.nodes[1].grpc_port}",
3030
"--database=/Root",
3131
"--duration", "120",
32+
"--allow-nullables-in-pk", "1",
3233
],
3334
wait=True
3435
)

0 commit comments

Comments
 (0)