From df2ad9174db60e2c57216d6a9b714c382b5a9bb7 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Fri, 7 Apr 2023 11:05:09 +0800 Subject: [PATCH] test: change autogen.py random to fixed --- tests/pytest/util/autogen.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/pytest/util/autogen.py b/tests/pytest/util/autogen.py index 5c6445da7d..90cd347b9a 100644 --- a/tests/pytest/util/autogen.py +++ b/tests/pytest/util/autogen.py @@ -51,10 +51,7 @@ class AutoGen: metas = [] for i in range(cnt): colname = f"{pre}{i}" - if i < len(types): - sel = i - else: - sel = random.randint(0, len(types)-1) + sel = i % len(types) coltype = types[sel] sql = f"{colname} {coltype}" if sqls != "": -- GitLab