From 12d89a75476f115ec7021943a223dee920a32028 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Mon, 22 Feb 2021 03:00:14 +0000 Subject: [PATCH] [TD-2984] : combine taosdemo and taosdemox. modify test case for new schema. --- tests/pytest/tools/taosdemoTest2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/pytest/tools/taosdemoTest2.py b/tests/pytest/tools/taosdemoTest2.py index cf2ac9b806..75a79d0585 100644 --- a/tests/pytest/tools/taosdemoTest2.py +++ b/tests/pytest/tools/taosdemoTest2.py @@ -31,7 +31,7 @@ class TDTestCase: def insertDataAndAlterTable(self, threadID): if(threadID == 0): - os.system("taosdemo -y -t %d -n %d -x" % + os.system("taosdemo -M -y -t %d -n %d -x" % (self.numberOfTables, self.numberOfRecords)) if(threadID == 1): time.sleep(2) @@ -54,10 +54,10 @@ class TDTestCase: if(rows > 0): break time.sleep(1) - print("alter table test.meters add column f4 int") - tdSql.execute("alter table test.meters add column f4 int") - print("insert into test.t0 values (now, 1, 2, 3, 4)") - tdSql.execute("insert into test.t0 values (now, 1, 2, 3, 4)") + print("alter table test.meters add column col10 int") + tdSql.execute("alter table test.meters add column col10 int") + print("insert into test.t0 values (now, 1, 2, 3, 4, 0.1, 0.01,'test', '测试', TRUE, 1610000000000, 0)") + tdSql.execute("insert into test.t0 values (now, 1, 2, 3, 4, 0.1, 0.01,'test', '测试', TRUE, 1610000000000, 0)") def run(self): tdSql.prepare() -- GitLab