test: change random to fixed

This commit is contained in:
Alex Duan 2023-04-07 11:00:53 +08:00
parent 54f13f6f55
commit 927390f38e
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 = len(types) % len(types)
coltype = types[sel]
sql = f"{colname} {coltype}"
if sqls != "":