qtest:modify testcase of muti-mnode

This commit is contained in:
tomchon 2022-06-13 09:56:23 +08:00
parent 45a729f147
commit 2dd3800043
2 changed files with 9 additions and 30 deletions

View File

@ -274,27 +274,9 @@ class TDTestCase:
return return
# test case2 base:insert data
def test_case2(self):
tdLog.debug("-----muti-thread insert data test------- ")
# drop database
tdSql.execute("drop database if exists db1")
tdSql.execute("drop database if exists db4")
tdSql.execute("drop database if exists db6")
tdSql.execute("drop database if exists db8")
tdSql.execute("drop database if exists db12")
tdSql.execute("drop database if exists db16")
#create database and tables;
tdSql.execute("create database db1 vgroups 1")
self.create_tables("db1", "stb1", 1*100)
self.insert_data("db1", "stb1", self.ts, 1*50,1*10000)
return
def test_case3(self): def test_case3(self):
self.taosBenchCreate("127.0.0.1","no","db1", "stb1", 1, 1, 1*10) self.taosBenchCreate("127.0.0.1","no","db1", "stb1", 1, 8, 1*10)
# self.taosBenchCreate("test209","no","db2", "stb2", 1, 8, 1*10000) # self.taosBenchCreate("test209","no","db2", "stb2", 1, 8, 1*10000)
# self.taosBenchCreate("chenhaoran02","no","db1", "stb1", 1, 8, 1*10000) # self.taosBenchCreate("chenhaoran02","no","db1", "stb1", 1, 8, 1*10000)
@ -349,22 +331,18 @@ class TDTestCase:
# run case # run case
def run(self): def run(self):
# # create database and tables。 # create database and tables。
# self.test_case1() self.test_case1()
# tdLog.debug(" LIMIT test_case1 ............ [OK]") tdLog.debug(" LIMIT test_case1 ............ [OK]")
# # taosBenchmark create database and table
# self.test_case2()
# tdLog.debug(" LIMIT test_case2 ............ [OK]")
# taosBenchmarkcreate database/table and insert data # taosBenchmarkcreate database/table and insert data
self.test_case3() self.test_case3()
tdLog.debug(" LIMIT test_case3 ............ [OK]") tdLog.debug(" LIMIT test_case3 ............ [OK]")
# # test qnode # test qnode
# self.test_case4() self.test_case4()
# tdLog.debug(" LIMIT test_case3 ............ [OK]") tdLog.debug(" LIMIT test_case3 ............ [OK]")
return return

View File

@ -97,7 +97,8 @@ python3 ./test.py -f 2-query/function_stateduration.py
python3 ./test.py -f 2-query/statecount.py python3 ./test.py -f 2-query/statecount.py
python3 ./test.py -f 6-cluster/5dnode1mnode.py python3 ./test.py -f 6-cluster/5dnode1mnode.py
python3 ./test.py -f 6-cluster/5dnode2mnode.py
python3 ./test.py -f 6-cluster/5dnode3mnodeStop.py
python3 ./test.py -f 7-tmq/basic5.py python3 ./test.py -f 7-tmq/basic5.py
python3 ./test.py -f 7-tmq/subscribeDb.py python3 ./test.py -f 7-tmq/subscribeDb.py