提交 43570ba2 编写于 作者: V Vladimir Chebotarev

Fixed deduplication issue in `test_multiple_disks::test_concurrent_alter_move`.

上级 dec5a500
......@@ -686,10 +686,12 @@ def test_concurrent_alter_move(start_cluster, name, engine):
SETTINGS storage_policy='jbods_with_external'
""".format(name=name, engine=engine))
values = list({ random.randint(1, 1000000) for _ in range(0, 1000) })
def insert(num):
for i in range(num):
day = random.randint(11, 30)
value = random.randint(1, 1000000)
value = values.pop()
month = '0' + str(random.choice([3, 4]))
node1.query("INSERT INTO {} VALUES(toDate('2019-{m}-{d}'), {v})".format(name, m=month, d=day, v=value))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册