diff --git a/perftest.lua b/perftest.lua index 13502e7..18af231 100755 --- a/perftest.lua +++ b/perftest.lua @@ -1,14 +1,18 @@ #!/usr/bin/env tarantool -local t = require('luatest') - -local checks = require('checks') local json = require('json') local log = require('log') local uuid = require('uuid') +local t = require('luatest') + local g = t.group('checks_performance') +-- Clean up built-in checks to run tests with repository module. +package.preload['checks'] = nil +package.loaded['checks'] = nil +local checks = require('checks') + local args = { ['nil'] = nil, ['string'] = 'str', diff --git a/test.lua b/test.lua index 151278f..c726796 100755 --- a/test.lua +++ b/test.lua @@ -1,12 +1,16 @@ #!/usr/bin/env tarantool -local t = require('luatest') - local json = require('json') -local checks = require('checks') + +local t = require('luatest') local g = t.group('checks') +-- Clean up built-in checks to run tests with repository module. +package.preload['checks'] = nil +package.loaded['checks'] = nil +local checks = require('checks') + ------------------------------------------------------------------------------ local current_file = debug.getinfo(1, 'S').short_src