1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-04 07:45:46 +00:00

tests: review comments

This commit is contained in:
Nicolas Duchon
2024-12-27 16:16:55 +01:00
parent 1e9745f604
commit ea99c1a6f9
47 changed files with 78 additions and 80 deletions

View File

@ -21,6 +21,5 @@ def test_multipath(docker_compose, nginxproxy):
assert r.text == "answer from port 83\n"
cfg = nginxproxy.get_conf().decode()
lines = cfg.splitlines()
web3_server_lines = [l for l in lines
if re.search(r'(?m)^\s*server\s+[^\s]*:83;\s*$', l)]
web3_server_lines = [l for l in lines if re.search(r'(?m)^\s*server\s+\S*:83;\s*$', l)]
assert len(web3_server_lines) == 1