1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
-- test-run result file version 2
test_run = require('test_run').new()
| ---
| ...
create_server_cmd = "create server replica%d with script='replication/replica_uuid_rw%d.lua'"
| ---
| ...
test_run:cmd("setopt delimiter ';'")
| ---
| - true
| ...
for i = 1,3 do
test_run:cmd(string.format(create_server_cmd, i, i))
end;
| ---
| ...
test_run:cmd("start server replica1 with wait_load=True, wait=True");
| ---
| - true
| ...
test_run:cmd("start server replica2 with args='1,2,3 1.0 100500 0.1', wait_load=False, wait=False");
| ---
| - true
| ...
test_run:cmd("start server replica3 with args='1,2,3 0.1 0.5 100500', wait_load=True, wait=True");
| ---
| - true
| ...
test_run:cmd("switch replica3");
| ---
| - true
| ...
fiber = require('fiber');
| ---
| ...
while (#box.info.replication < 3) do
fiber.sleep(0.05)
end;
| ---
| ...
test_run:cmd("switch default");
| ---
| - true
| ...
for i = 1,3 do
test_run:cmd("stop server replica"..i.." with cleanup=1")
test_run:cmd("delete server replica"..i)
end;
| ---
| ...
test_run:cmd("setopt delimiter ''");
| ---
| - true
| ...
|