From c29d22449c6033d27cf6b20afd3b6377d59d9ac6 Mon Sep 17 00:00:00 2001 From: zhipz Date: Tue, 9 Jul 2024 17:07:47 +0800 Subject: [PATCH] Using the checkdata. --- tests/system-test/99-TDcase/TS-5130.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/system-test/99-TDcase/TS-5130.py b/tests/system-test/99-TDcase/TS-5130.py index 68a9ae9d0e..504500fa0e 100644 --- a/tests/system-test/99-TDcase/TS-5130.py +++ b/tests/system-test/99-TDcase/TS-5130.py @@ -21,8 +21,9 @@ class TDTestCase: try: for db in ['information_schema', 'performance_schema']: new_tdsql = tdCom.newTdSql(user=uname, password=self.passwd[uname], database=db) - result = new_tdsql.getResult(sql=f'show databases') - assert result == [('information_schema',), ('performance_schema',)] + new_tdsql.query('show databases') + new_tdsql.checkData(0, 0, 'information_schema') + new_tdsql.checkData(1, 0, 'performance_schema') tdLog.success(f"Test User {uname} for {db} .......[OK]") except: tdLog.exit(f'{__file__} failed')