diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2022-09-07 01:11:04 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2022-09-07 01:11:04 +0100 |
commit | c65e04682e85cc708b534863ae8f4e069ccccf64 (patch) | |
tree | 34f871e1c6d60da776d67cb0be7425289dae7205 /test/test_configuration.py | |
parent | 9d3b9dba40924229b0c4909b0a4c60d08214501c (diff) | |
download | unit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.gz unit-c65e04682e85cc708b534863ae8f4e069ccccf64.tar.bz2 |
Tests: minor fixes.
Diffstat (limited to 'test/test_configuration.py')
-rw-r--r-- | test/test_configuration.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py index 75fbb845..7c612db0 100644 --- a/test/test_configuration.py +++ b/test/test_configuration.py @@ -229,18 +229,12 @@ class TestConfiguration(TestControl): def test_listeners_unix_abstract(self): if option.system != 'Linux': - assert 'error' in self.conf( - {"unix:@sock": {"pass": "routes"}}, 'listeners' - ), 'unix abstract at' + assert 'error' in self.try_addr("unix:@sock"), 'abstract at' pytest.skip('not yet') - assert 'error' in self.conf( - {"unix:\0sock": {"pass": "routes"}}, 'listeners' - ), 'unix abstract zero' - assert 'error' in self.conf( - {"unix:\u0000sock": {"pass": "routes"}}, 'listeners' - ), 'unix abstract zero unicode' + assert 'error' in self.try_addr("unix:\0soc"), 'abstract \0' + assert 'error' in self.try_addr("unix:\u0000soc"), 'abstract \0 unicode' def test_listeners_addr(self): assert 'success' in self.try_addr("*:7080"), 'wildcard' |