[TD-2665]<test> add test case
This commit is contained in:
parent
486d84dea3
commit
e3d65a9a21
|
@ -48,12 +48,16 @@ class TDTestCase:
|
||||||
tdSql.execute("insert into car3 values('2019-01-01 00:00:01.389', 1)")
|
tdSql.execute("insert into car3 values('2019-01-01 00:00:01.389', 1)")
|
||||||
tdSql.execute("insert into car4 values('2019-01-01 00:00:01.829', 1)")
|
tdSql.execute("insert into car4 values('2019-01-01 00:00:01.829', 1)")
|
||||||
|
|
||||||
|
tdSql.error("create table strm as select count(*) from cars")
|
||||||
|
|
||||||
tdSql.execute("create table strm as select count(*) from cars interval(4s)")
|
tdSql.execute("create table strm as select count(*) from cars interval(4s)")
|
||||||
tdSql.waitedQuery("select * from strm", 2, 100)
|
tdSql.waitedQuery("select * from strm", 2, 100)
|
||||||
tdSql.checkData(0, 1, 11)
|
tdSql.checkData(0, 1, 11)
|
||||||
tdSql.checkData(1, 1, 2)
|
tdSql.checkData(1, 1, 2)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
tdSql.close()
|
tdSql.close()
|
||||||
tdLog.success("%s successfully executed" % __file__)
|
tdLog.success("%s successfully executed" % __file__)
|
||||||
|
|
Loading…
Reference in New Issue