From 75b9bba28254f37cdc078930a712e1210fb04706 Mon Sep 17 00:00:00 2001 From: tangfangzhi Date: Fri, 28 Jan 2022 19:25:10 +0800 Subject: [PATCH] optimize append_commit_data.py, shorten its execution time --- tests/pytest/update/append_commit_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/pytest/update/append_commit_data.py b/tests/pytest/update/append_commit_data.py index 867ee696a2..524c66d06a 100644 --- a/tests/pytest/update/append_commit_data.py +++ b/tests/pytest/update/append_commit_data.py @@ -59,7 +59,7 @@ class TDTestCase: tdSql.query("select * from db.t1") tdSql.checkRows(insertRows) - for k in range(0,100): + for k in range(0,10): tdLog.info("insert %d rows" % (insertRows)) temp='' for i in range (0,insertRows): @@ -75,6 +75,7 @@ class TDTestCase: tdDnodes.start(1) tdSql.query("select * from db.t1") tdSql.checkRows(insertRows+200*k) + insertRows = insertRows * 2 print("==========step3") print("insert into another table ") s = 'use db' -- GitLab