fix: countAlways return is 0

This commit is contained in:
Alex Duan 2024-01-15 14:14:25 +08:00
parent 6eb79ea8ee
commit 318293edf1
2 changed files with 5 additions and 4 deletions

View File

@ -72,8 +72,8 @@ class TDTestCase(TBase):
# check count always return value
sql = f"select count(*) from {self.db}.ta"
tdSql.waitedQuery(sql, 0, 2)
tdSql.query()
tdSql.checkRows(0) # countAlwaysReturnValue is false
# run
def run(self):

View File

@ -132,8 +132,9 @@ class TBase:
tdSql.checkAgg(sql, self.childtable_count)
# check step
sql = f"select count(*) from (select diff(ts) as dif from {self.stb} partition by tbname) where dif != {self.timestamp_step}"
tdSql.checkAgg(sql, 0)
sql = f"select * from (select diff(ts) as dif from {self.stb} partition by tbname) where dif != {self.timestamp_step}"
tdSql.query(sql)
tdSql.checkRows(0)
# save agg result
def snapshotAgg(self):