From 0288faac7f156b7fd7f2d574b9212749db9ed407 Mon Sep 17 00:00:00 2001 From: cpwu Date: Sat, 21 May 2022 17:50:10 +0800 Subject: [PATCH] fix case --- tests/system-test/0-others/user_control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/system-test/0-others/user_control.py b/tests/system-test/0-others/user_control.py index a785060d52..327b1531d9 100644 --- a/tests/system-test/0-others/user_control.py +++ b/tests/system-test/0-others/user_control.py @@ -311,7 +311,8 @@ class TDTestCase: tdSql.error(sql) tdSql.query(sql) self.__change_user_priv(user=user, pre_priv=priv, invoke=True) - user.db_set.remove(dbname) + if user.name != "root": + user.db_set.remove(dbname) if dbname else user.db_set.clear() time.sleep(1) def test_priv_change_current(self):