File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 33import allure
44import json
55from ydb .tests .olap .lib .ydb_cli import YdbCliHelper , WorkloadType
6+ from ydb .tests .olap .lib .ydb_cluster import YdbCluster
67from ydb .tests .olap .lib .allure_utils import allure_test_description
78from ydb .tests .olap .lib .results_processor import ResultsProcessor
89from ydb .tests .olap .scenario .helpers .scenario_tests_helper import ScenarioTestHelper
@@ -51,6 +52,14 @@ def _test_name(cls, query_num: int) -> str:
5152 @classmethod
5253 @allure .step ('check tables size' )
5354 def check_tables_size (cls , folder : Optional [str ], tables : dict [str , int ]):
55+ wait_error = YdbCluster .wait_ydb_alive (
56+ 300 , (
57+ f'{ YdbCluster .tables_path } /{ folder } '
58+ if folder is not None
59+ else [f'{ YdbCluster .tables_path } /{ t } ' for t in tables .keys ()]
60+ ))
61+ if wait_error is not None :
62+ pytest .fail (f'Cluster is dead: { wait_error } ' )
5463 sth = ScenarioTestHelper (None )
5564 errors : list [str ] = []
5665 for table , expected_size in tables .items ():
You can’t perform that action at this time.
0 commit comments