summaryrefslogtreecommitdiffhomepage
path: root/test/test_respawn.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-04-11Tests: style.Andrei Zeliankou1-2/+1
2021-07-01Tests: fixing racing condition in respawn tests.Max Romanov1-5/+10
A race may occur between the router process restart and the main process sending a notification to the running controller. For example, a test script detects the new process and starts performing a smoke test, but the controller has not yet received the 'remove PID' notification, so the connection to the router is broken and any attempt to update the configuration will cause an error. The solution is to perform several attempts to reconfigure Unit with a short delay between failures.
2021-04-05Tests: style.Andrei Zeliankou1-3/+4
2021-03-31Tests: added file descriptor leak detection.Andrei Zeliankou1-2/+4
2021-01-08Tests: fixed test_respawn.py to act upon test processes.Tiago Natel de Moura1-23/+28
Running `test_respawn_` test cases on a machine with Unit daemon in background would fail tests because `ps ax` was used without filtering out other unit instances. This patch also prevents from tests killing other Unit processes not related to tests.
2020-12-08Tests: skip_alert() converted to the fixture.Andrei Zeliankou1-4/+3
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-3/+2
2020-10-07Tests: minor fixes.Andrei Zeliankou1-1/+1
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-25/+20
2020-05-15Tests: style.Andrei Zeliankou1-2/+2
2020-05-12Tests: added respawn tests.Andrei Zeliankou1-0/+95