From e3d65a9a21dc249d9b319fb3876b793f2c52936b Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Thu, 7 Jan 2021 16:30:37 +0800 Subject: [PATCH] [TD-2665] add test case --- tests/pytest/stream/history.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pytest/stream/history.py b/tests/pytest/stream/history.py index 890580001c..cb8a4d5986 100644 --- a/tests/pytest/stream/history.py +++ b/tests/pytest/stream/history.py @@ -48,12 +48,16 @@ class TDTestCase: 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.error("create table strm as select count(*) from cars") + tdSql.execute("create table strm as select count(*) from cars interval(4s)") tdSql.waitedQuery("select * from strm", 2, 100) tdSql.checkData(0, 1, 11) tdSql.checkData(1, 1, 2) + + def stop(self): tdSql.close() tdLog.success("%s successfully executed" % __file__) -- GitLab