test: adjust tmqshow case
This commit is contained in:
parent
ecff9423bf
commit
a8a75f33d7
|
@ -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/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/tmqCheckData1.py
|
||||||
,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqConsumerGroup.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/tmqAlterSchema.py
|
||||||
,,,system-test,python3 ./test.py -f 7-tmq/tmqConsFromTsdb.py
|
,,,system-test,python3 ./test.py -f 7-tmq/tmqConsFromTsdb.py
|
||||||
,,,system-test,python3 ./test.py -f 7-tmq/tmqConsFromTsdb1.py
|
,,,system-test,python3 ./test.py -f 7-tmq/tmqConsFromTsdb1.py
|
||||||
|
|
|
@ -126,13 +126,20 @@ class TDTestCase:
|
||||||
pThread = tmqCom.asyncInsertData(paraDict)
|
pThread = tmqCom.asyncInsertData(paraDict)
|
||||||
|
|
||||||
tmqCom.getStartConsumeNotifyFromTmqsim()
|
tmqCom.getStartConsumeNotifyFromTmqsim()
|
||||||
#time.sleep(5)
|
|
||||||
|
for i in range(0, 10, 1):
|
||||||
tdLog.info("check show consumers")
|
tdLog.info("check show consumers")
|
||||||
tdSql.query("show consumers")
|
tdSql.query("show consumers")
|
||||||
# tdLog.info(tdSql.queryResult)
|
# tdLog.info(tdSql.queryResult)
|
||||||
rows = tdSql.getRows()
|
rows = tdSql.getRows()
|
||||||
tdLog.info("show consumers rows: %d" % rows)
|
tdLog.info("show consumers rows: %d" % rows)
|
||||||
if rows != len(topicNameList):
|
|
||||||
|
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")
|
tdLog.exit("show consumers rows error")
|
||||||
|
|
||||||
for i in range(0, 10, 1):
|
for i in range(0, 10, 1):
|
||||||
|
|
Loading…
Reference in New Issue