From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (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 786DD469719 for ; Sat, 3 Oct 2020 21:05:59 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Sat, 3 Oct 2020 21:05:54 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v1] test: move error messages into logs gh-4984 List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kirill Yukhin Cc: tarantool-patches@dev.tarantool.org 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