Skip to content
Snippets Groups Projects
Commit d5ec7e94 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy
Browse files

test: fix flaky qsync_with_anon.test.lua

The test used very small timeout, 0.1 second, to test that a sync
transaction works fine. But with too much load on the machine this
may appear not enough. Now in the cases where the timeout wasn't
supposed to explode the value 1000 seconds is used, more than
enough.

Closes #5165
parent 47aa4e01
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ test_run:switch('default')
| ---
| - true
| ...
box.cfg{replication_synchro_quorum=NUM_INSTANCES, replication_synchro_timeout=0.1}
box.cfg{replication_synchro_quorum=NUM_INSTANCES, replication_synchro_timeout=1000}
| ---
| ...
_ = box.schema.space.create('sync', {is_sync=true, engine=engine})
......@@ -126,7 +126,7 @@ test_run:switch('default')
| ---
| - true
| ...
box.cfg{replication_synchro_quorum=NUM_INSTANCES}
box.cfg{replication_synchro_quorum=NUM_INSTANCES, replication_synchro_timeout=1000}
| ---
| ...
box.space.sync:insert{1} -- success
......
......@@ -19,7 +19,7 @@ test_run:cmd('switch replica_anon')
-- replica.
-- Testcase setup.
test_run:switch('default')
box.cfg{replication_synchro_quorum=NUM_INSTANCES, replication_synchro_timeout=0.1}
box.cfg{replication_synchro_quorum=NUM_INSTANCES, replication_synchro_timeout=1000}
_ = box.schema.space.create('sync', {is_sync=true, engine=engine})
_ = box.space.sync:create_index('pk')
-- Testcase body.
......@@ -45,7 +45,7 @@ box.space.sync:insert{1} -- failure
test_run:cmd('switch replica_anon')
box.space.sync:select{} -- none
test_run:switch('default')
box.cfg{replication_synchro_quorum=NUM_INSTANCES}
box.cfg{replication_synchro_quorum=NUM_INSTANCES, replication_synchro_timeout=1000}
box.space.sync:insert{1} -- success
test_run:cmd('switch replica_anon')
box.space.sync:select{} -- 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment