Skip to content

Commit bd37703

Browse files
committed
test: replace deprecated slab_alloc_arena option
1 parent 8ff9a3f commit bd37703

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: unit/suites/box.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ os = require('os')
33

44
require('console').listen(os.getenv("ADMIN_PORT"))
55
box.cfg{
6-
listen = os.getenv("PRIMARY_PORT"),
7-
slab_alloc_arena = 0.1,
8-
pid_file = "box.pid",
6+
listen = os.getenv("PRIMARY_PORT"),
7+
memtx_memory = 0.1 * 1024^3, -- 0.1 GiB
8+
pid_file = "box.pid",
99
}

Diff for: unit/suites/lib/tarantool_server.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ class RunnerException(object):
3939

4040
class TarantoolServer(object):
4141
default_tarantool = {
42-
"bin": "tarantool",
43-
"logfile": "tarantool.log",
44-
"init": "init.lua"}
42+
"bin": "tarantool",
43+
"logfile": "tarantool.log",
44+
"init": "init.lua"}
4545

4646
default_cfg = {
4747
"custom_proc_title": "\"tarantool-python testing\"",
48-
"slab_alloc_arena": 0.5,
49-
"pid_file": "\"box.pid\""}
48+
"memtx_memory": 0.5 * 1024**3, # 0.5 GiB
49+
"pid_file": "\"box.pid\""}
5050

5151
@property
5252
def logfile_path(self):

0 commit comments

Comments
 (0)