From c65e04682e85cc708b534863ae8f4e069ccccf64 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Wed, 7 Sep 2022 01:11:04 +0100 Subject: Tests: minor fixes. --- test/test_configuration.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'test/test_configuration.py') 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' -- cgit