提交 bdfa5dd7 编写于 作者: A Alex Duan

modify case use now ts

上级 e4180b82
...@@ -39,6 +39,7 @@ class TDTestCase: ...@@ -39,6 +39,7 @@ class TDTestCase:
def run(self): def run(self):
tbNum = 10 tbNum = 10
rowNum = 20 rowNum = 20
ts_begin = 1617552000000
tdSql.prepare() tdSql.prepare()
...@@ -49,8 +50,8 @@ class TDTestCase: ...@@ -49,8 +50,8 @@ class TDTestCase:
tdSql.execute("create table tb%d using stb tags(%d)" % (i, i)) tdSql.execute("create table tb%d using stb tags(%d)" % (i, i))
for j in range(rowNum): for j in range(rowNum):
tdSql.execute( tdSql.execute(
"insert into tb%d values (now - %dm, %d, %d)" % "insert into tb%d values (%d, %d, %d)" %
(i, 1440 - j, j, j)) (i, ts_begin + 1440 - j, j, j))
time.sleep(0.1) time.sleep(0.1)
self.createFuncStream("count(*)", "c1", 200) self.createFuncStream("count(*)", "c1", 200)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册