test: update stream case for TD-30382

This commit is contained in:
jiajingbin 2024-06-04 16:24:36 +08:00
parent 2851d24860
commit cb91923525
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@ class TDTestCase:
for ts_value in [self.tdCom.date_time, window_close_ts-1]:
self.tdCom.sinsert_rows(tbname=self.ctb_name, ts_value=ts_value)
self.tdCom.sinsert_rows(tbname=self.tb_name, ts_value=ts_value)
if i == 0 and fill_history_value is not None:
for tbname in [self.ctb_stream_des_table, self.tb_stream_des_table]:
if tbname != self.tb_stream_des_table:
tdSql.query(f'select count(*) from {tbname}', count_expected_res=1)
else:
tdSql.query(f'select count(*) from {tbname}', count_expected_res=1)
if self.tdCom.update and i%2 == 0:
self.tdCom.sinsert_rows(tbname=self.ctb_name, ts_value=ts_value)
self.tdCom.sinsert_rows(tbname=self.tb_name, ts_value=ts_value)