Skip to content

Commit 24ecbdf

Browse files
George Rybakovpsergee
George Rybakov
authored andcommitted
test: fixed assertions
Fixed assertions in test_running.py
1 parent d27b6ff commit 24ecbdf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/integration/running/test_running.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_running_base_functionality(tt_cmd, tmpdir_with_cfg):
4747
# Stop the Instance.
4848
stop_cmd = [tt_cmd, "stop", "test_app"]
4949
stop_rc, stop_out = run_command_and_get_output(stop_cmd, cwd=tmpdir)
50-
assert status_rc == 0
50+
assert stop_rc == 0
5151
assert re.search(r"The Instance test_app \(PID = \d+\) has been terminated.", stop_out)
5252

5353
# Check that the process was terminated correctly.
@@ -112,7 +112,7 @@ def test_restart(tt_cmd, tmpdir_with_cfg):
112112
# Stop the new Instance.
113113
stop_cmd = [tt_cmd, "stop", "test_app"]
114114
stop_rc, stop_out = run_command_and_get_output(stop_cmd, cwd=tmpdir)
115-
assert status_rc == 0
115+
assert stop_rc == 0
116116
assert re.search(r"The Instance test_app \(PID = \d+\) has been terminated.", stop_out)
117117

118118
# Check that the process of new Instance was terminated correctly.
@@ -257,7 +257,7 @@ def test_running_base_functionality_working_dir_app(tt_cmd):
257257
# Stop the application.
258258
stop_cmd = [tt_cmd, "stop", "app"]
259259
stop_rc, stop_out = run_command_and_get_output(stop_cmd, cwd=test_app_path)
260-
assert status_rc == 0
260+
assert stop_rc == 0
261261
assert re.search(r"The Instance app:(router|master|replica|stateboard) \(PID = \d+\) "
262262
r"has been terminated.", stop_out)
263263

@@ -309,7 +309,7 @@ def test_running_base_functionality_working_dir_app_no_app_name(tt_cmd):
309309
# Stop the application.
310310
stop_cmd = [tt_cmd, "stop"]
311311
stop_rc, stop_out = run_command_and_get_output(stop_cmd, cwd=test_app_path)
312-
assert status_rc == 0
312+
assert stop_rc == 0
313313
assert re.search(r"The Instance app:(router|master|replica|stateboard) \(PID = \d+\) "
314314
r"has been terminated.", stop_out)
315315

@@ -545,7 +545,7 @@ def test_no_args_usage(tt_cmd):
545545
# Stop all applications.
546546
stop_cmd = [tt_cmd, "stop"]
547547
stop_rc, stop_out = run_command_and_get_output(stop_cmd, cwd=test_app_path)
548-
assert status_rc == 0
548+
assert stop_rc == 0
549549
assert re.search(r"The Instance app1:(router|master|replica) \(PID = \d+\) "
550550
r"has been terminated.", stop_out)
551551
assert re.search(r"The Instance app2 \(PID = \d+\) "
@@ -589,7 +589,7 @@ def test_running_env_variables(tt_cmd, tmpdir_with_cfg):
589589
# Stop the Instance.
590590
stop_cmd = [tt_cmd, "stop", "test_env_app"]
591591
stop_rc, stop_out = run_command_and_get_output(stop_cmd, cwd=tmpdir)
592-
assert status_rc == 0
592+
assert stop_rc == 0
593593
assert re.search(r"The Instance test_env_app \(PID = \d+\) has been terminated.", stop_out)
594594

595595
# Check that the process was terminated correctly.

0 commit comments

Comments
 (0)