This commit is contained in:
cpwu 2022-08-04 18:39:52 +08:00
parent ffc56cf4bf
commit e5bf371b1b
1 changed files with 2 additions and 2 deletions

View File

@ -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:
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")