test: change random to fixed
This commit is contained in:
parent
54f13f6f55
commit
927390f38e
|
@ -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 != "":
|
||||
|
|
Loading…
Reference in New Issue