diff --git a/test/box/lua/utils.lua b/test/box/lua/utils.lua index e6b3a6b57a16a87cb45c3508de33e247d7ab8e44..a853eede480c3be26dc84e675abd66e65e9f4ebe 100644 --- a/test/box/lua/utils.lua +++ b/test/box/lua/utils.lua @@ -188,6 +188,13 @@ local function create_iterator(obj, key, opts) local _, tp = iter.gen(key, state) return tp end + -- Disable JIT to avoid test failures when the iterator object + -- is referenced at the trace as the function's upvalue. + -- For more information, see + -- https://github.com/tarantool/tarantool/wiki/LuaJIT-function-inlining. + -- It helps to avoid side effects like those mentioned in the + -- tarantool/tarantool-qa#233. + jit.off(res.next) res.iterate_over = function() local ret = {} local i = 0 diff --git a/test/box/net.box_reconnect_after_gh-3164.result b/test/box/net.box_reconnect_after_gh-3164.result index 31f4137e8253720eeef64ead8de1b9d0c0c3d824..251d96c4dcb4197d4fe025519e1fb5a3fa7ceded 100644 --- a/test/box/net.box_reconnect_after_gh-3164.result +++ b/test/box/net.box_reconnect_after_gh-3164.result @@ -10,6 +10,14 @@ test_run = require('test_run').new() net = require('net.box') --- ... +-- Disable JIT to avoid the test failure when the connection +-- object is referenced at the trace as the function's upvalue. +-- For more information, see +-- https://github.com/tarantool/tarantool/wiki/LuaJIT-function-inlining. +-- Resolves tarantool/tarantool-qa#276. +jit.off() +--- +... test_run:cmd("push filter 'peer_uuid: .*' to 'peer_uuid: <UUID>'") --- - true diff --git a/test/box/net.box_reconnect_after_gh-3164.test.lua b/test/box/net.box_reconnect_after_gh-3164.test.lua index 1a766df7eb488a752c60d2ff1db432c8714fffc7..69b4825d467ce494ff06d7d8b89bf4b044c06a61 100644 --- a/test/box/net.box_reconnect_after_gh-3164.test.lua +++ b/test/box/net.box_reconnect_after_gh-3164.test.lua @@ -3,6 +3,13 @@ log = require 'log' test_run = require('test_run').new() net = require('net.box') +-- Disable JIT to avoid the test failure when the connection +-- object is referenced at the trace as the function's upvalue. +-- For more information, see +-- https://github.com/tarantool/tarantool/wiki/LuaJIT-function-inlining. +-- Resolves tarantool/tarantool-qa#276. +jit.off() + test_run:cmd("push filter 'peer_uuid: .*' to 'peer_uuid: <UUID>'") test_run:cmd("push filter 'reconnect_after: .*' to 'reconnect_after: <NUM>'") test_run:cmd("push filter 'schema_version: .*' to 'schema_version: <NUM>'")