Skip to content
Snippets Groups Projects
Commit d5b2d614 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Kirill Yukhin
Browse files

test: fix flaky swim/errinj.test.lua

In one place that test sends a packet and expects that it has
arrived two lines below. Under high load it may take more time.
The patch makes the test explicitly wait for the packet arrival.

Closes #4392
parent 109a304d
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,9 @@ errinj.set("ERRINJ_SWIM_FD_ONLY", false)
---
- ok
...
while s1_view:incarnation().version ~= 2 do fiber.sleep(0.01) end
---
...
s1_view:payload()
---
- null
......
......@@ -26,6 +26,7 @@ s1:self():incarnation()
errinj.set("ERRINJ_SWIM_FD_ONLY", true)
s1:probe_member(s2:self():uri())
errinj.set("ERRINJ_SWIM_FD_ONLY", false)
while s1_view:incarnation().version ~= 2 do fiber.sleep(0.01) end
s1_view:payload()
s1_view:incarnation()
......
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