Skip to content

Commit faf787a

Browse files
authored
fix timeout in test_alter_tiering (#19199)
1 parent ebced65 commit faf787a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ydb/tests/olap/scenario/helpers/scenario_tests_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def execute_scheme_query(
439439
@classmethod
440440
@allure.step('Execute scan query')
441441
def execute_scan_query(
442-
cls, yql: str, expected_status: ydb.StatusCode | Set[ydb.StatusCode] = ydb.StatusCode.SUCCESS
442+
cls, yql: str, expected_status: ydb.StatusCode | Set[ydb.StatusCode] = ydb.StatusCode.SUCCESS, timeout=10
443443
):
444444
"""Run a scanning query on the tested database.
445445
@@ -459,7 +459,7 @@ def execute_scan_query(
459459

460460
allure.attach(yql, 'request', allure.attachment_type.TEXT)
461461
it = cls._run_with_expected_status(
462-
lambda: YdbCluster.get_ydb_driver().table_client.scan_query(yql), expected_status
462+
lambda: YdbCluster.get_ydb_driver().table_client.scan_query(yql, settings=ydb.BaseRequestSettings().with_timeout(timeout)), expected_status
463463
)
464464
rows = None
465465
ret = None

ydb/tests/olap/scenario/test_alter_tiering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ def _loop_scan(
245245
sth.execute_scan_query(
246246
f'SELECT MIN(writer) FROM `{sth.get_full_path(table)}`',
247247
expected_status=expected_scan_status,
248+
timeout=duration.seconds
248249
)
249250

250251
def _loop_set_ttl(

0 commit comments

Comments
 (0)