Merge pull request #20801 from taosdata/test/TD-AUTOGETN-3.0
test: change random to fixed
This commit is contained in:
commit
b5b4f5db95
|
@ -51,10 +51,7 @@ class AutoGen:
|
||||||
metas = []
|
metas = []
|
||||||
for i in range(cnt):
|
for i in range(cnt):
|
||||||
colname = f"{pre}{i}"
|
colname = f"{pre}{i}"
|
||||||
if i < len(types):
|
sel = len(types) % len(types)
|
||||||
sel = i
|
|
||||||
else:
|
|
||||||
sel = random.randint(0, len(types)-1)
|
|
||||||
coltype = types[sel]
|
coltype = types[sel]
|
||||||
sql = f"{colname} {coltype}"
|
sql = f"{colname} {coltype}"
|
||||||
if sqls != "":
|
if sqls != "":
|
||||||
|
|
Loading…
Reference in New Issue