diff --git a/tests/army/frame/autogen.py b/tests/army/frame/autogen.py index bbcbf9ad9a..d1f02e7865 100644 --- a/tests/army/frame/autogen.py +++ b/tests/army/frame/autogen.py @@ -163,16 +163,18 @@ class AutoGen: values = "" tdLog.info(f" insert child data {child_name} finished, insert rows={cnt}") - self.ts = ts + return 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}" - self.insert_data_child(name, cnt, self.batch_size, 1) + currTs = 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