Skip to content
Snippets Groups Projects
Commit c34d1d67 authored by Alexander V. Tikhonov's avatar Alexander V. Tikhonov Committed by Kirill Yukhin
Browse files

test: move error messages into logs gh-5366

Set error message to log output in test:

  replication/gh-4402-info-errno.test.lua
parent ca0c2799
No related branches found
No related tags found
No related merge requests found
......@@ -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
| ...
......
......@@ -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')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment