From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladislav Shpilevoy Subject: [PATCH 5/8] test: fix unstable test Date: Mon, 16 Apr 2018 21:39:15 +0300 Message-Id: In-Reply-To: References: In-Reply-To: References: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com List-ID: --- test/box/errinj.result | 3 +++ test/box/errinj.test.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/test/box/errinj.result b/test/box/errinj.result index 958f82dd9..5b4bc23a3 100644 --- a/test/box/errinj.result +++ b/test/box/errinj.result @@ -1136,6 +1136,9 @@ errinj.set("ERRINJ_WAL_DELAY", false) --- - ok ... +while ok == nil do fiber.sleep(0.01) end +--- +... ok, err --- - true diff --git a/test/box/errinj.test.lua b/test/box/errinj.test.lua index a3dde8458..e1460d1b6 100644 --- a/test/box/errinj.test.lua +++ b/test/box/errinj.test.lua @@ -385,6 +385,7 @@ end) test_run:cmd('setopt delimiter ""'); cn.space.test:get{1} errinj.set("ERRINJ_WAL_DELAY", false) +while ok == nil do fiber.sleep(0.01) end ok, err cn:close() s:drop() -- 2.15.1 (Apple Git-101)