From 091da20ab827e4d1ab4b5733eb7dad6fb24ce8db Mon Sep 17 00:00:00 2001 From: menshibin Date: Sun, 21 Jan 2024 20:40:06 +0800 Subject: [PATCH] add use db --- tests/army/frame/autogen.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/army/frame/autogen.py b/tests/army/frame/autogen.py index d38d2e2f19..bbcbf9ad9a 100644 --- a/tests/army/frame/autogen.py +++ b/tests/army/frame/autogen.py @@ -163,22 +163,18 @@ class AutoGen: values = "" tdLog.info(f" insert child data {child_name} finished, insert rows={cnt}") - return ts + self.ts = ts def insert_data(self, cnt, bContinue=False): if not bContinue: self.ts = 1600000000000 - currTs = 1600000000000 for i in range(self.child_cnt): name = f"{self.child_name}{i}" - currTs = self.insert_data_child(name, cnt, self.batch_size, 1) + self.insert_data_child(name, cnt, self.batch_size, 1) - self.ts = currTs tdLog.info(f" insert data ok, child table={self.child_cnt} insert rows={cnt}") - # insert same timestamp to all childs - # insert same timestamp to all childs def insert_samets(self, cnt): for i in range(self.child_cnt):