[Tarantool-patches] [PATCH v1] test: move error messages into logs gh-4984
Alexander V. Tikhonov
avtikhon at tarantool.org
Sat Oct 3 21:05:54 MSK 2020
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
More information about the Tarantool-patches
mailing list