Skip to content
Snippets Groups Projects
Commit 1dbb316d authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix spontaneously failed replication/status.test.lua

parent 7438f7a5
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,9 @@ control_ch:put(true)
---
- true
...
require('fiber').sleep(0) -- wait replica to send auth request
---
...
r = box.info.replication
---
...
......@@ -121,11 +124,7 @@ control_ch:put("goodbye")
r = box.info.replication
---
...
r.status == "disconnected"
---
- true
...
r.message:match("socket") ~= nil
r.status == "disconnected" and r.message:match("socket") ~= nil or r.status == 'auth'
---
- true
...
......
......@@ -48,6 +48,7 @@ r.status == "connect"
control_ch:put(true)
require('fiber').sleep(0) -- wait replica to send auth request
r = box.info.replication
r.status == "auth"
r.lag < 1
......@@ -59,8 +60,7 @@ r.idle < 1
slowpoke:close()
control_ch:put("goodbye")
r = box.info.replication
r.status == "disconnected"
r.message:match("socket") ~= nil
r.status == "disconnected" and r.message:match("socket") ~= nil or r.status == 'auth'
r.idle < 1
slowpoke = require('socket').tcp_server(uri.host, uri.port, slowpoke_loop)
......
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