未验证 提交 2af658f9 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #3635 from taosdata/yqliu

[TD-1386] <test> add test case for retention
...@@ -67,8 +67,12 @@ class TDTestRetetion: ...@@ -67,8 +67,12 @@ class TDTestRetetion:
cmd = 'insert into test values(now,11);' cmd = 'insert into test values(now,11);'
tdLog.info(cmd) tdLog.info(cmd)
tdSql.execute(cmd) tdSql.execute(cmd)
tdSql.query('select * from test') queryRows=tdSql.query('select * from test')
tdSql.checkRows(5) if queryRows==4:
tdSql.checkRows(4)
return 0
else:
tdSql.checkRows(5)
tdLog.info("=============== step3") tdLog.info("=============== step3")
tdDnodes.stop(1) tdDnodes.stop(1)
...@@ -77,7 +81,7 @@ class TDTestRetetion: ...@@ -77,7 +81,7 @@ class TDTestRetetion:
cmd = 'insert into test values(now-1d,11);' cmd = 'insert into test values(now-1d,11);'
tdLog.info(cmd) tdLog.info(cmd)
tdSql.execute(cmd) tdSql.execute(cmd)
tdSql.query('select * from test') queryRows=tdSql.query('select * from test')
tdSql.checkRows(6) tdSql.checkRows(6)
tdLog.info("=============== step4") tdLog.info("=============== step4")
tdDnodes.stop(1) tdDnodes.stop(1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册