Skip to content
Snippets Groups Projects
Unverified Commit 84ea1b96 authored by Alexander Turenko's avatar Alexander Turenko
Browse files

test: ensure instances are stopped in tctl test


The problem appears after 6c627af3
('test: tarantoolctl: verify delayed box.cfg()'), where the test case
was changed and it doesn't more assume an error at the instance start.
So we need to stop it to prevent a situation when instances are stay
after `make test`.

Fixes #4600.
Reviewed-by: default avatarVladislav Shpilevoy <v.shpilevoy@tarantool.org>

(cherry picked from commit 8d363c43)
parent 11675347
No related branches found
No related tags found
No related merge requests found
......@@ -189,8 +189,13 @@ do
local status, err = pcall(function()
test:test("basic test", function(test_i)
test_i:plan(18)
check_ok(test_i, dir, 'start', 'delayed_box_cfg', 0, nil, "Starting instance")
test_i:plan(20)
local script = 'delayed_box_cfg'
check_ok(test_i, dir, 'start', script, 0, nil, "Starting instance")
tctl_wait_start(dir, script)
check_ok(test_i, dir, 'stop', script, 0, nil, "Stopping")
tctl_wait_stop(dir, script)
check_ok(test_i, dir, 'start', 'script', 0, nil, "Starting instance")
tctl_wait_start(dir, 'script')
check_ok(test_i, dir, 'status', 'script', 0, nil, "is running")
......
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