From e5bf371b1bcbf86aa695413023e61be867e4d2fe Mon Sep 17 00:00:00 2001 From: cpwu Date: Thu, 4 Aug 2022 18:39:52 +0800 Subject: [PATCH] fix case --- tests/system-test/0-others/user_control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index 4ee465aa0c..8d7f06582a 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -665,7 +665,7 @@ class TDTestCase: taos2_except = True try: taos.connect(user=self.__user_list[2], password=f"new{self.__passwd_list[2]}") - except ConnectionError: + except BaseException: taos2_except = False if taos2_except: tdLog.exit("taos 2 connect except error not occured, when enable == 0, should not connect") @@ -694,7 +694,7 @@ class TDTestCase: try: taos4_conn.query(f"show mnodes") taos4_conn.query(f"show {DBNAME}.vgroups") - except : + except BaseException: taos4_except = False 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")