From: "Alexander V. Tikhonov" <avtikhon@tarantool.org> To: Kirill Yukhin <kyukhin@tarantool.org> Cc: tarantool-patches@dev.tarantool.org Subject: [Tarantool-patches] [PATCH v1] test: move error messages for tests into logs (3) Date: Wed, 30 Sep 2020 11:58:02 +0300 [thread overview] Message-ID: <30b37cb9c238038a45ffe3a4696663c3b91f7e62.1601455945.git.avtikhon@tarantool.org> (raw) Set error message to log output in test: replication/gh-4402-info-errno.test.lua gh-5366 --- Github: https://github.com/tarantool/tarantool/tree/avtikhon/flaky-checksums test/replication/gh-4402-info-errno.result | 4 ++-- test/replication/gh-4402-info-errno.test.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/replication/gh-4402-info-errno.result b/test/replication/gh-4402-info-errno.result index 9c6b352a4..682aac6f3 100644 --- a/test/replication/gh-4402-info-errno.result +++ b/test/replication/gh-4402-info-errno.result @@ -27,7 +27,7 @@ i = box.info replica_id = i.id % 2 + 1 | --- | ... -test_run:wait_downstream(replica_id, {status = 'follow'}) or i +test_run:wait_downstream(replica_id, {status = 'follow'}) or require('log').error(i) | --- | - true | ... @@ -50,7 +50,7 @@ i = box.info d = i.replication[replica_id].downstream | --- | ... -d ~= nil and d.system_message ~= nil and d.message ~= nil or i +d ~= nil and d.system_message ~= nil and d.message ~= nil or require('log').error(i) | --- | - true | ... diff --git a/test/replication/gh-4402-info-errno.test.lua b/test/replication/gh-4402-info-errno.test.lua index 8f72e7f72..bfaf30d38 100644 --- a/test/replication/gh-4402-info-errno.test.lua +++ b/test/replication/gh-4402-info-errno.test.lua @@ -12,13 +12,13 @@ test_run:cmd('create server replica with rpl_master=default, script="replication test_run:cmd('start server replica') i = box.info replica_id = i.id % 2 + 1 -test_run:wait_downstream(replica_id, {status = 'follow'}) or i +test_run:wait_downstream(replica_id, {status = 'follow'}) or require('log').error(i) test_run:cmd('stop server replica') test_run:cmd("cleanup server replica") test_run:cmd("delete server replica") i = box.info d = i.replication[replica_id].downstream -d ~= nil and d.system_message ~= nil and d.message ~= nil or i +d ~= nil and d.system_message ~= nil and d.message ~= nil or require('log').error(i) box.schema.user.revoke('guest', 'replication') -- 2.25.1
reply other threads:[~2020-09-30 8:58 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=30b37cb9c238038a45ffe3a4696663c3b91f7e62.1601455945.git.avtikhon@tarantool.org \ --to=avtikhon@tarantool.org \ --cc=kyukhin@tarantool.org \ --cc=tarantool-patches@dev.tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH v1] test: move error messages for tests into logs (3)' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox