Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1] test: move error messages for tests into logs (3)
@ 2020-09-30  8:58 Alexander V. Tikhonov
  0 siblings, 0 replies; only message in thread
From: Alexander V. Tikhonov @ 2020-09-30  8:58 UTC (permalink / raw)
  To: Kirill Yukhin; +Cc: tarantool-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-30  8:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30  8:58 [Tarantool-patches] [PATCH v1] test: move error messages for tests into logs (3) Alexander V. Tikhonov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox