test: add check
This commit is contained in:
parent
97e295307a
commit
5964e7819c
|
@ -256,6 +256,7 @@ class TDTestCase:
|
|||
tdLog.info("all consumers status into 'lost'")
|
||||
|
||||
# drop consumer groups
|
||||
tdLog.info("drop all consumers")
|
||||
for i in range(len(groupIdList)):
|
||||
for j in range(len(topicNameList)):
|
||||
sqlCmd = f"drop consumer group `%s` on %s"%(groupIdList[i], topicNameList[j])
|
||||
|
@ -266,6 +267,16 @@ class TDTestCase:
|
|||
tdLog.debug("notify sub-thread to stop insert data")
|
||||
pThread.join()
|
||||
|
||||
tdSql.query('show consumers;')
|
||||
consumerNUm = tdSql.queryRows
|
||||
|
||||
tdSql.query('show subscriptions;')
|
||||
subscribeNum = tdSql.queryRows
|
||||
|
||||
if (0 != consumerNUm or 0 != subscribeNum):
|
||||
tdLog.exit("drop consumer fail! consumerNUm %d, subscribeNum: %d"%(consumerNUm, subscribeNum))
|
||||
|
||||
tdLog.info("drop consuer success, there is no consumers and subscribes")
|
||||
tdLog.printNoPrefix("======== test case 1 end ...... ")
|
||||
|
||||
def run(self):
|
||||
|
|
Loading…
Reference in New Issue