From 1ee7020a41ad10953cba56c308c5e412ac19852b Mon Sep 17 00:00:00 2001 From: Gleb Kashkin <g.kashkin@tarantool.org> Date: Mon, 2 Oct 2023 11:13:16 +0000 Subject: [PATCH] test: proceed with server on 'check_warnings' status Before this patch luatest.server used to fail if the instance status was different from 'ready'. Now it allows 'check_warnings' state too. It is required to test legal corner cases inside config applier. Part of #8967 NO_DOC=test helper update NO_TEST=see NO_DOC NO_CHANGELOG=see NO_DOC --- test/luatest_helpers/server.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/luatest_helpers/server.lua b/test/luatest_helpers/server.lua index 0566398793..9179cc5d3f 100644 --- a/test/luatest_helpers/server.lua +++ b/test/luatest_helpers/server.lua @@ -140,7 +140,8 @@ function Server:connect_net_box() local saved_eval = self.net_box.eval self.net_box.eval = function(self, expr, args, opts) if expr == 'return _G.ready' then - expr = "return require('config'):info().status == 'ready'" + expr = "return require('config'):info().status == 'ready' or " .. + "require('config'):info().status == 'check_warnings'" end return saved_eval(self, expr, args, opts) end -- GitLab