提交 e5bf371b 编写于 作者: C cpwu

fix case

上级 ffc56cf4
...@@ -665,7 +665,7 @@ class TDTestCase: ...@@ -665,7 +665,7 @@ class TDTestCase:
taos2_except = True taos2_except = True
try: try:
taos.connect(user=self.__user_list[2], password=f"new{self.__passwd_list[2]}") taos.connect(user=self.__user_list[2], password=f"new{self.__passwd_list[2]}")
except ConnectionError: except BaseException:
taos2_except = False taos2_except = False
if taos2_except: if taos2_except:
tdLog.exit("taos 2 connect except error not occured, when enable == 0, should not connect") tdLog.exit("taos 2 connect except error not occured, when enable == 0, should not connect")
...@@ -694,7 +694,7 @@ class TDTestCase: ...@@ -694,7 +694,7 @@ class TDTestCase:
try: try:
taos4_conn.query(f"show mnodes") taos4_conn.query(f"show mnodes")
taos4_conn.query(f"show {DBNAME}.vgroups") taos4_conn.query(f"show {DBNAME}.vgroups")
except : except BaseException:
taos4_except = False taos4_except = False
if taos4_except: if taos4_except:
tdLog.exit("taos 4 query except error not occured, when sysinfo == 0, when enable == 0, should not show info:dnode/monde/qnode") tdLog.exit("taos 4 query except error not occured, when sysinfo == 0, when enable == 0, should not show info:dnode/monde/qnode")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册