diff --git a/tests/pytest/fulltest.sh b/tests/pytest/fulltest.sh index 76a5868e6125dcf7b17f326e4c0ec923574eaa95..bb973d2602dca263da36ba669ccb218b00be6164 100755 --- a/tests/pytest/fulltest.sh +++ b/tests/pytest/fulltest.sh @@ -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=============== diff --git a/tests/pytest/update/bug_td2279.py b/tests/pytest/update/update_options.py similarity index 76% rename from tests/pytest/update/bug_td2279.py rename to tests/pytest/update/update_options.py index 7e8640dfa09bc904cd49fe88da29bc306fdde6d0..dd1b82fc596a3a977b028234900337474b971ec2 100644 --- a/tests/pytest/update/bug_td2279.py +++ b/tests/pytest/update/update_options.py @@ -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()