diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2022-11-15 01:07:41 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2022-11-15 01:07:41 +0000 |
commit | 9ea5ed2813c7dc57c8997ef21d779baae19d784c (patch) | |
tree | c9c2529580ab51c8ed9b081bf4f488f3fd6bdc2d /test | |
parent | bb11ef694ce49343a11bafee836addb6dd125848 (diff) | |
download | unit-9ea5ed2813c7dc57c8997ef21d779baae19d784c.tar.gz unit-9ea5ed2813c7dc57c8997ef21d779baae19d784c.tar.bz2 |
Tests: fixed _check_processes() checks in "--restart" mode.
Diffstat (limited to 'test')
-rw-r--r-- | test/conftest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/conftest.py b/test/conftest.py index ac88675a..bf2951db 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -574,6 +574,10 @@ def _check_processes(): time.sleep(0.1) + if option.restart: + assert len(out) == 0, 'all termimated' + return + assert len(out) == 3, 'main, router, and controller expected' out = [l for l in out if 'unit: main' not in l] |