From d5b2d614de8261c8be99e00ea0712c421ad45e53 Mon Sep 17 00:00:00 2001 From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org> Date: Tue, 30 Jul 2019 21:30:10 +0200 Subject: [PATCH] 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 --- test/swim/errinj.result | 3 +++ test/swim/errinj.test.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/test/swim/errinj.result b/test/swim/errinj.result index efeab87a89..cf26b0a4a5 100644 --- a/test/swim/errinj.result +++ b/test/swim/errinj.result @@ -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 diff --git a/test/swim/errinj.test.lua b/test/swim/errinj.test.lua index cf0cb2dd4a..6c73f9f3dd 100644 --- a/test/swim/errinj.test.lua +++ b/test/swim/errinj.test.lua @@ -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() -- GitLab