提交 a8a75f33 编写于 作者: S Shengliang Guan

test: adjust tmqshow case

上级 ecff9423
......@@ -690,7 +690,7 @@
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqCheckData.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqCheckData1.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqConsumerGroup.py
,,,system-test,python3 ./test.py -f 7-tmq/tmqShow.py
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqShow.py
,,,system-test,python3 ./test.py -f 7-tmq/tmqAlterSchema.py
,,,system-test,python3 ./test.py -f 7-tmq/tmqConsFromTsdb.py
,,,system-test,python3 ./test.py -f 7-tmq/tmqConsFromTsdb1.py
......
......@@ -126,14 +126,21 @@ class TDTestCase:
pThread = tmqCom.asyncInsertData(paraDict)
tmqCom.getStartConsumeNotifyFromTmqsim()
#time.sleep(5)
tdLog.info("check show consumers")
tdSql.query("show consumers")
# tdLog.info(tdSql.queryResult)
rows = tdSql.getRows()
tdLog.info("show consumers rows: %d"%rows)
if rows != len(topicNameList):
tdLog.exit("show consumers rows error")
for i in range(0, 10, 1):
tdLog.info("check show consumers")
tdSql.query("show consumers")
# tdLog.info(tdSql.queryResult)
rows = tdSql.getRows()
tdLog.info("show consumers rows: %d" % rows)
if rows == len(topicNameList):
tdLog.info("show consumers rows not match %d:%d" %
(rows, len(topicNameList)))
time.sleep(1)
break
if (rows == 9):
tdLog.exit("show consumers rows error")
for i in range(0, 10, 1):
tdLog.info("check show subscriptions")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册