提交 642cd078 编写于 作者: A Alex Duan

fix: max wait time modify from 5s to 10s

上级 6eeddb4b
...@@ -140,21 +140,21 @@ class TDTestCase: ...@@ -140,21 +140,21 @@ class TDTestCase:
def check_alive(self): def check_alive(self):
# check cluster alive # check cluster alive
tdLog.printNoPrefix("======== test cluster alive: ") tdLog.printNoPrefix("======== test cluster alive: ")
tdSql.checkDataLoop(0, 0, 1, "show cluster alive;", 10, 0.5) tdSql.checkDataLoop(0, 0, 1, "show cluster alive;", 20, 0.5)
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.stoptaosd(5) self.TDDnodes.stoptaosd(5)
tdSql.checkDataLoop(0, 0, 2, "show cluster alive;", 10, 0.5) tdSql.checkDataLoop(0, 0, 2, "show cluster alive;", 20, 0.5)
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.stoptaosd(2) self.TDDnodes.stoptaosd(2)
tdSql.checkDataLoop(0, 0, 0, "show cluster alive;", 10, 0.5) tdSql.checkDataLoop(0, 0, 0, "show cluster alive;", 20, 0.5)
tdSql.query("show db.alive;") tdSql.query("show db.alive;")
tdSql.checkData(0, 0, 0) tdSql.checkData(0, 0, 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册