Skip to content
Snippets Groups Projects
Commit a4fe86b6 authored by avtikhon's avatar avtikhon Committed by Kirill Yukhin
Browse files

test: box/net.box test flaky fails on grep_log (#4330)

box/net.box test flaky failed on grepping the log file
for 'ER_NO_SUCH_PROC' pattern on high load running hosts,
found that the issue can be resolved by updating the
grep_log to wait_log function to make able to wait the
needed message for some time.

[008] Test failed! Result content mismatch:
[008] --- box/net.box.result	Tue Jul  9 17:00:24 2019
[008] +++ box/net.box.reject	Tue Jul  9 17:03:34 2019
[008] @@ -1376,7 +1376,7 @@
[008]  ...
[008]  test_run:grep_log("default", "ER_NO_SUCH_PROC")
[008]  ---
[008] -- ER_NO_SUCH_PROC
[008] +- null
[008]  ...
[008]  box.schema.user.revoke('guest', 'execute', 'universe')
[008]  ---

Closes #4329

(cherry picked from commit 9bde3406)
parent 45c7fb1d
No related branches found
No related tags found
No related merge requests found
......@@ -1373,7 +1373,7 @@ test_run:cmd("setopt delimiter ''");
---
- true
...
test_run:grep_log("default", "ER_NO_SUCH_PROC")
test_run:wait_log('default', 'ER_NO_SUCH_PROC', nil, 10)
---
- ER_NO_SUCH_PROC
...
......
......@@ -536,7 +536,7 @@ _ = fiber.create(
end
);
test_run:cmd("setopt delimiter ''");
test_run:grep_log("default", "ER_NO_SUCH_PROC")
test_run:wait_log('default', 'ER_NO_SUCH_PROC', nil, 10)
box.schema.user.revoke('guest', 'execute', 'universe')
--
......
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