[TD-2984] <fix>: combine taosdemo and taosdemox. modify test case for new schema.
This commit is contained in:
parent
eb8ca83bda
commit
12d89a7547
|
@ -31,7 +31,7 @@ class TDTestCase:
|
||||||
|
|
||||||
def insertDataAndAlterTable(self, threadID):
|
def insertDataAndAlterTable(self, threadID):
|
||||||
if(threadID == 0):
|
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))
|
(self.numberOfTables, self.numberOfRecords))
|
||||||
if(threadID == 1):
|
if(threadID == 1):
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
@ -54,10 +54,10 @@ class TDTestCase:
|
||||||
if(rows > 0):
|
if(rows > 0):
|
||||||
break
|
break
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
print("alter table test.meters add column f4 int")
|
print("alter table test.meters add column col10 int")
|
||||||
tdSql.execute("alter table test.meters add column f4 int")
|
tdSql.execute("alter table test.meters add column col10 int")
|
||||||
print("insert into test.t0 values (now, 1, 2, 3, 4)")
|
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)")
|
tdSql.execute("insert into test.t0 values (now, 1, 2, 3, 4, 0.1, 0.01,'test', '测试', TRUE, 1610000000000, 0)")
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
tdSql.prepare()
|
tdSql.prepare()
|
||||||
|
|
Loading…
Reference in New Issue