提交 ac67b69c 编写于 作者: A Alex Duan

fix: python case error

上级 167c3908
...@@ -141,33 +141,33 @@ class TDTestCase: ...@@ -141,33 +141,33 @@ class TDTestCase:
# check cluster alive # check cluster alive
tdLog.printNoPrefix("======== test cluster alive: ") tdLog.printNoPrefix("======== test cluster alive: ")
tdSql.query("show cluster alive;") tdSql.query("show cluster alive;")
tdSql.checkData(0, 0, "1") tdSql.checkData(0, 0, 1)
tdSql.query("show db.alive;") tdSql.query("show db.alive;")
tdSql.checkData(0, 0, "1") tdSql.checkData(0, 0, 1)
# stop 5 dnode # stop 5 dnode
self.TDDnodes[4].stoptaosd() self.TDDnodes[4].stoptaosd()
tdSql.query("show cluster alive;") tdSql.query("show cluster alive;")
tdSql.checkData(0, 0, "2") tdSql.checkData(0, 0, 2)
tdSql.query("show db.alive;") tdSql.query("show db.alive;")
tdSql.checkData(0, 0, "2") tdSql.checkData(0, 0, 2)
# stop 2 dnode # stop 2 dnode
self.TDDnodes[1].stoptaosd() self.TDDnodes[1].stoptaosd()
tdSql.query("show cluster alive;") tdSql.query("show cluster alive;")
tdSql.checkData(0, 0, "0") tdSql.checkData(0, 0, 0)
tdSql.query("show db.alive;") tdSql.query("show db.alive;")
tdSql.checkData(0, 0, "0") tdSql.checkData(0, 0, 0)
def run(self): def run(self):
# print(self.master_dnode.cfgDict) # print(self.master_dnode.cfgDict)
self.five_dnode_one_mnode() self.five_dnode_one_mnode()
# check cluster and db alive # check cluster and db alive
self.check_alive("db") self.check_alive()
def stop(self): def stop(self):
tdSql.close() tdSql.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册