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

Merge pull request #17791 from taosdata/test3.0/lihui

test:modify tmq test case for replica3
...@@ -100,7 +100,7 @@ class TDTestCase: ...@@ -100,7 +100,7 @@ class TDTestCase:
# tmqCom.insert_data_with_autoCreateTbl(tsql=tdSql,dbName=paraDict["dbName"],stbName=paraDict["stbName"],ctbPrefix="ctbx", # tmqCom.insert_data_with_autoCreateTbl(tsql=tdSql,dbName=paraDict["dbName"],stbName=paraDict["stbName"],ctbPrefix="ctbx",
# ctbNum=paraDict["ctbNum"],rowsPerTbl=paraDict["rowsPerTbl"],batchNum=paraDict["batchNum"], # ctbNum=paraDict["ctbNum"],rowsPerTbl=paraDict["rowsPerTbl"],batchNum=paraDict["batchNum"],
# startTs=paraDict["startTs"],ctbStartIdx=paraDict['ctbStartIdx']) # startTs=paraDict["startTs"],ctbStartIdx=paraDict['ctbStartIdx'])
tmqCom.asyncInsertDataByInterlace(paraDict) pThread = tmqCom.asyncInsertDataByInterlace(paraDict)
tdLog.info("wait some data inserted") tdLog.info("wait some data inserted")
exitFlag = 1 exitFlag = 1
...@@ -128,6 +128,7 @@ class TDTestCase: ...@@ -128,6 +128,7 @@ class TDTestCase:
cluster.dnodes[4].stoptaosd() cluster.dnodes[4].stoptaosd()
cluster.dnodes[4].starttaosd() cluster.dnodes[4].starttaosd()
pThread.join()
# tdLog.info("restart taosd to ensure that the data falls into the disk") # tdLog.info("restart taosd to ensure that the data falls into the disk")
# tdSql.query("flush database %s"%(paraDict['dbName'])) # tdSql.query("flush database %s"%(paraDict['dbName']))
return return
...@@ -290,6 +291,7 @@ class TDTestCase: ...@@ -290,6 +291,7 @@ class TDTestCase:
def run(self): def run(self):
self.prepareTestEnv() self.prepareTestEnv()
self.tmqCase1() self.tmqCase1()
self.prepareTestEnv()
self.tmqCase2() self.tmqCase2()
def stop(self): def stop(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册