From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp43.i.mail.ru (smtp43.i.mail.ru [94.100.177.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id AD42E469719 for ; Mon, 9 Nov 2020 15:57:15 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Mon, 9 Nov 2020 15:57:12 +0300 Message-Id: <35a75c370ee7e6135322c38ffe575c18da34cffe.1604926554.git.avtikhon@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v1] test: fix hang of vinyl/select_consistency.* test List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kirill Yukhin Cc: tarantool-patches@dev.tarantool.org During testing process: https://gitlab.com/tarantool/tarantool/-/jobs/800863457#L5303 found that test vinyl/select_consistency.test.lua hanged: --- vinyl/select_consistency.result Thu Jun 11 11:59:48 2020 +++ var/152_vinyl/select_consistency.result Tue Oct 20 09:13:02 2020 @@ -137,16 +137,3 @@ for i = 1, ch:size() do ch:get() end; ---- -... -test_run:cmd("setopt delimiter ''"); ---- -- true -... This issue stops the testing till the complete timeout of the test-run will stop all the testing process. To avoid of it 'wait_cond()' routine was added to 'ch:get()' command to set it's local timeout to avoid of waiting for test-run global timeout. Needed for #4385 --- Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4385_hang_select_consistency Issue: https://github.com/tarantool/tarantool/issues/4385 test/vinyl/select_consistency.result | 2 +- test/vinyl/select_consistency.test.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/vinyl/select_consistency.result b/test/vinyl/select_consistency.result index f27d0ec68..5a23a674b 100644 --- a/test/vinyl/select_consistency.result +++ b/test/vinyl/select_consistency.result @@ -135,7 +135,7 @@ stop = true; --- ... for i = 1, ch:size() do - ch:get() + test_run:wait_cond(function() return ch:get() end) end; --- ... diff --git a/test/vinyl/select_consistency.test.lua b/test/vinyl/select_consistency.test.lua index 73b443e89..6398d09cd 100644 --- a/test/vinyl/select_consistency.test.lua +++ b/test/vinyl/select_consistency.test.lua @@ -102,7 +102,7 @@ end; stop = true; for i = 1, ch:size() do - ch:get() + test_run:wait_cond(function() return ch:get() end) end; test_run:cmd("setopt delimiter ''"); -- 2.25.1