From 344c51fcc7506110f14c94cb782a337131a6f127 Mon Sep 17 00:00:00 2001 From: dmchen Date: Tue, 17 Dec 2024 10:00:33 +0000 Subject: [PATCH] enh/TD-29974-improve-trans-fix-case --- .../0-others/show_transaction_detail.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/system-test/0-others/show_transaction_detail.py b/tests/system-test/0-others/show_transaction_detail.py index 13ef8f6316..ec8ebcaef2 100644 --- a/tests/system-test/0-others/show_transaction_detail.py +++ b/tests/system-test/0-others/show_transaction_detail.py @@ -68,25 +68,25 @@ class TDTestCase: tdLog.info(f"show transaction {tranId2}, {oper2}") rows = tdSql.query(f"show transaction {tranId1}", queryTimes=1) - if rows != 160 and rows != 176: - tdLog.exit(f"restore transaction detial error, rows={rows}") + if rows != 120 and rows != 176: + tdLog.exit(f"show transaction detial error, rows={rows}") return False rows = tdSql.query(f"show transaction {tranId2}", queryTimes=1) - if rows != 176 and rows != 160: - tdLog.exit(f"restore transaction detial error, rows={rows}") + if rows != 176 and rows != 120: + tdLog.exit(f"show transaction detial error, rows={rows}") return False tdLog.info(f"select * from ins_transaction_details") rows = tdSql.query(f"select * from information_schema.ins_transaction_details", queryTimes=1) - if rows != 336: + if rows != 296: tdLog.exit(f"restore transaction detial error, rows={rows}") return False def createDbThread(self, sql, newTdSql): - tdLog.info("CREATE DATABASE db2 vgroups 160 replica 3;") - newTdSql.execute('CREATE DATABASE db2 vgroups 160 replica 3;', queryTimes=1) + tdLog.info("CREATE DATABASE db2 vgroups 40 replica 3;") + newTdSql.execute('CREATE DATABASE db2 vgroups 40 replica 3;', queryTimes=1) def alterDbThread(self, sql, newTdSql): tdLog.info("alter DATABASE db1 replica 3;")