Tarantool development patches archive
 help / color / mirror / Atom feed
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 into logs gh-4984
Date: Sat,  3 Oct 2020 21:05:54 +0300	[thread overview]
Message-ID: <a22c9ad29e7ed3cec780a6d84162a00b568dbb11.1601748286.git.avtikhon@tarantool.org> (raw)

Set error message to log output in test:

  vinyl/snapshot.test.lua
---

Github: https://github.com/tarantool/tarantool/tree/avtikhon/flaky-checksums

 test/vinyl/snapshot.result   | 2 +-
 test/vinyl/snapshot.test.lua | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/vinyl/snapshot.result b/test/vinyl/snapshot.result
index 7c55e4710..1c723ed74 100644
--- a/test/vinyl/snapshot.result
+++ b/test/vinyl/snapshot.result
@@ -94,7 +94,7 @@ box.backup.stop()
 ...
 -- Check that run files only contain statements
 -- inserted before checkpoint.
-snap_lsn == run_lsn or {snap_lsn, run_lsn}
+snap_lsn == run_lsn or require('log').error("snap_lsn = " .. snap_lsn .. ", run_lsn = " .. run_lsn)
 ---
 - true
 ...
diff --git a/test/vinyl/snapshot.test.lua b/test/vinyl/snapshot.test.lua
index ba8e93a8b..0667dcae0 100644
--- a/test/vinyl/snapshot.test.lua
+++ b/test/vinyl/snapshot.test.lua
@@ -57,7 +57,7 @@ box.backup.stop()
 
 -- Check that run files only contain statements
 -- inserted before checkpoint.
-snap_lsn == run_lsn or {snap_lsn, run_lsn}
+snap_lsn == run_lsn or require('log').error("snap_lsn = " .. snap_lsn .. ", run_lsn = " .. run_lsn)
 
 s:drop()
 
-- 
2.25.1

                 reply	other threads:[~2020-10-03 18:05 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=a22c9ad29e7ed3cec780a6d84162a00b568dbb11.1601748286.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 into logs gh-4984' \
    /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