Tests: fixed tests to run as root.

This commit is contained in:
Andrei Zeliankou
2020-10-06 20:30:51 +01:00
parent 703d79042b
commit 37390d2a3b
2 changed files with 4 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ import pytest
from distutils.version import LooseVersion
from unit.applications.lang.python import TestApplicationPython
from conftest import option
from conftest import option, public_dir
class TestASGILifespan(TestApplicationPython):
@@ -23,6 +23,8 @@ class TestASGILifespan(TestApplicationPython):
open(shutdown_path, 'a').close()
open(version_path, 'a').close()
public_dir(option.test_dir + '/python/lifespan/empty')
assert self.get()['status'] == 204
self.stop()