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 3
3
import allure
4
4
import json
5
5
from ydb .tests .olap .lib .ydb_cli import YdbCliHelper , WorkloadType
6
+ from ydb .tests .olap .lib .ydb_cluster import YdbCluster
6
7
from ydb .tests .olap .lib .allure_utils import allure_test_description
7
8
from ydb .tests .olap .lib .results_processor import ResultsProcessor
8
9
from ydb .tests .olap .scenario .helpers .scenario_tests_helper import ScenarioTestHelper
@@ -51,6 +52,14 @@ def _test_name(cls, query_num: int) -> str:
51
52
@classmethod
52
53
@allure .step ('check tables size' )
53
54
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 } ' )
54
63
sth = ScenarioTestHelper (None )
55
64
errors : list [str ] = []
56
65
for table , expected_size in tables .items ():
You can’t perform that action at this time.
0 commit comments