diff --git a/test/box-luatest/gh_7860_syslog_json_test.lua b/test/box-luatest/gh_7860_syslog_json_test.lua
index bc665e2bce6d738b277746e4e395cbc0556e97de..bd450f49a4eea9021d3574dacd3e4e97fcc569c5 100644
--- a/test/box-luatest/gh_7860_syslog_json_test.lua
+++ b/test/box-luatest/gh_7860_syslog_json_test.lua
@@ -32,6 +32,11 @@ g.before_all(function(cg)
     cg.check_json = function(expected_msg)
         local s = cg.sock:recv(1024)
         t.assert(s)
+        -- HACK: test-run.py sets OMP_NUM_THREADS which changes the 1st msg.
+        if s:find("Use cfg option 'memtx_sort_threads' instead.") then
+            s = cg.sock:recv(1024)
+            t.assert(s)
+        end
         local hdr, body = unpack(s:split(': ', 1))
         t.assert_str_matches(
             hdr, '<%d+>%a+%s+%d%d?%s+%d%d:%d%d:%d%d%s+tt%[' .. cg.pid .. '%]')