test: change autogen.py random to fixed

This commit is contained in:
Alex Duan 2023-04-07 11:05:09 +08:00
parent db1cb4a8a8
commit df2ad9174d
1 changed files with 1 additions and 4 deletions

View File

@ -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 != "":