未验证 提交 c2ef969e 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #8155 from taosdata/xiaoping/add_test_case

[TS-402]<test>: add test case for update 
......@@ -198,7 +198,7 @@ python3 ./test.py -f update/merge_commit_data2.py
python3 ./test.py -f update/merge_commit_data2_update0.py
python3 ./test.py -f update/merge_commit_last-0.py
python3 ./test.py -f update/merge_commit_last.py
python3 ./test.py -f update/bug_td2279.py
python3 ./test.py -f update/update_options.py
#======================p2-end===============
#======================p3-start===============
......
......@@ -34,6 +34,7 @@ class TDTestCase:
def run(self):
tdSql.prepare()
# test case for TD-2279
print("==============step1")
tdSql.execute("create table t (ts timestamp, a int)")
......@@ -58,6 +59,24 @@ class TDTestCase:
tdSql.checkRows(6612)
tdDnodes.stop(1)
tdDnodes.startWithoutSleep(1)
tdLog.sleep(3)
# test case for https://jira.taosdata.com:18080/browse/TS-402
tdSql.execute("create database test update 1")
tdSql.execute("use test")
tdSql.execute("create table tb (ts timestamp, c1 int, c2 int, c3 int)")
tdSql.execute("insert into tb values(%d, 1, 2, 3)(%d, null, null, 9)" % (self.ts, self.ts))
tdSql.query("select * from tb")
tdSql.checkRows(1)
tdSql.checkData(0, 1, None)
tdSql.checkData(0, 2, None)
tdSql.checkData(0, 3, 9)
def stop(self):
tdSql.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册