summaryrefslogtreecommitdiffhomepage
path: root/test/test_go_isolation.py
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2021-11-18 17:04:04 +0300
committerAndrei Belov <defan@nginx.com>2021-11-18 17:04:04 +0300
commitb400ccd1aa8eeb6a5de1707e0bb8c3d417fe69b7 (patch)
tree60ff49ffc16ef7cb3aad1beb2d78f051a8794cdf /test/test_go_isolation.py
parentfafd44166d9e835e91a4c5668048308ce99a62bd (diff)
parentb77895d1c7d6cd4826ac7427c91baa95b998a912 (diff)
downloadunit-b400ccd1aa8eeb6a5de1707e0bb8c3d417fe69b7.tar.gz
unit-b400ccd1aa8eeb6a5de1707e0bb8c3d417fe69b7.tar.bz2
Merged with the default branch.1.26.0-1
Diffstat (limited to 'test/test_go_isolation.py')
-rw-r--r--test/test_go_isolation.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_go_isolation.py b/test/test_go_isolation.py
index e02ef1cf..72988a34 100644
--- a/test/test_go_isolation.py
+++ b/test/test_go_isolation.py
@@ -3,7 +3,6 @@ import os
import pwd
import pytest
-
from unit.applications.lang.go import TestApplicationGo
from unit.option import option
from unit.utils import getns
@@ -12,6 +11,10 @@ from unit.utils import getns
class TestGoIsolation(TestApplicationGo):
prerequisites = {'modules': {'go': 'any'}, 'features': ['isolation']}
+ @pytest.fixture(autouse=True)
+ def setup_method_fixture(self, request, skip_alert):
+ skip_alert(r'\[unit\] close\(\d+\) failed: Bad file descriptor')
+
def unpriv_creds(self):
nobody_uid = pwd.getpwnam('nobody').pw_uid
@@ -228,7 +231,7 @@ class TestGoIsolation(TestApplicationGo):
obj = self.getjson()['body']
- assert obj['PID'] == 1, 'pid of container is 1'
+ assert obj['PID'] == 2, 'pid of container is 2'
def test_isolation_namespace_false(self):
self.load('ns_inspect')