test: add test case of tsma

This commit is contained in:
chenhaoran 2024-04-10 10:27:43 +08:00 committed by wangjiaming0909
parent 58ef5dae19
commit e051cdfbd0
1 changed files with 2 additions and 2 deletions

View File

@ -1282,11 +1282,11 @@ class TDTestCase:
tdSql.error('drop table norm_tb', -2147471088)
# drop no tsma table
tdSql.execute('drop table t2, t1')
tdSql.execute('drop table test.t2, test.t1')
# test ttl drop table
self.create_tsma('tsma1', 'test', 'meters', ['avg(c1)', 'avg(c2)'], '5m')
tdSql.execute('alter table nsdb.t0 ttl 2', queryTimes=1)
tdSql.execute('alter table test.t0 ttl 2', queryTimes=1)
tdSql.execute('flush database test')
tdSql.waitedQuery('show tables like "%t0"', 0, 10)