Skip to content

Commit

Permalink
test: fix status at replication/gh-4424-misc* test
Browse files Browse the repository at this point in the history
Fixed flaky status check:

  [016] @@ -73,11 +73,11 @@
  [016]  ...
  [016]  box.info.status
  [016]  ---
  [016] -- running
  [016] +- orphan
  [016]  ...
  [016]  box.info.ro
  [016]  ---
  [016] -- false
  [016] +- true
  [016]  ...
  [016]  box.cfg{                                                        \
  [016]      replication = {},                                           \
  [016]

Test changed to use wait condition for the status check, which should
be changed from 'orphan' to 'running'. On heavy loaded hosts it may
spend some additional time, wait condition routine helped to fix it.

Closes #5271
  • Loading branch information
avtikhon committed Sep 4, 2020
1 parent e540050 commit cdaf0ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Expand Up @@ -65,13 +65,9 @@ box.info.ro
box.cfg{replication_connect_quorum=1}
---
...
box.info.status
test_run:wait_cond(function() return box.info.status == 'running' and box.info.ro == false end)
---
- running
...
box.info.ro
---
- false
- true
...
box.cfg{ \
replication = {}, \
Expand Down
Expand Up @@ -25,8 +25,7 @@ box.info.status
box.info.ro
-- lower quorum => leave orphan mode
box.cfg{replication_connect_quorum=1}
box.info.status
box.info.ro
test_run:wait_cond(function() return box.info.status == 'running' and box.info.ro == false end)

box.cfg{ \
replication = {}, \
Expand Down

0 comments on commit cdaf0ed

Please sign in to comment.