diff options
author | Devaev Maxim <[email protected]> | 2019-04-10 03:42:27 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-10 03:42:27 +0300 |
commit | fdba228eed5823c5082822ed00e711c449deb940 (patch) | |
tree | 4627feac9daa36ad4ffa279dc34b9b7221f7ffa3 | |
parent | 8f992214eb6e57e852b199095e6a82b5bdde2838 (diff) |
fixed test_app_cleanup
-rw-r--r-- | tests/test_app_cleanup.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_app_cleanup.py b/tests/test_app_cleanup.py index a793e314..d0f1f009 100644 --- a/tests/test_app_cleanup.py +++ b/tests/test_app_cleanup.py @@ -38,7 +38,9 @@ def test_ok(tmpdir) -> None: # type: ignore ustreamer_fake_name = "ustr-" + secrets.token_hex(3) ustreamer_sock_path = os.path.abspath(str(tmpdir.join("ustreamer-fake.sock"))) + open(ustreamer_sock_path, "w").close() kvmd_sock_path = os.path.abspath(str(tmpdir.join("kvmd-fake.sock"))) + open(kvmd_sock_path, "w").close() def ustreamer_fake() -> None: setproctitle.setproctitle(ustreamer_fake_name) @@ -60,9 +62,9 @@ def test_ok(tmpdir) -> None: # type: ignore "kvmd/streamer/unix=" + ustreamer_sock_path, "kvmd/streamer/cmd=[\"%s\"]" % (ustreamer_fake_name), ]) - assert not proc.is_alive() assert not os.path.exists(ustreamer_sock_path) assert not os.path.exists(kvmd_sock_path) + assert not proc.is_alive() proc.join() |