mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-11-22 03:46:29 +00:00
TESTS: fix failure raising when cannot get nginx-proxy nginx configuration file
This commit is contained in:
parent
43d8ba0e78
commit
eeb27f7b50
@ -48,9 +48,9 @@ class requests_for_docker(object):
|
||||
"""
|
||||
nginx_proxy_containers = docker_client.containers.list(filters={"ancestor": "jwilder/nginx-proxy:test"})
|
||||
if len(nginx_proxy_containers) > 1:
|
||||
pytest.failed("Too many running jwilder/nginx-proxy:test containers")
|
||||
pytest.fail("Too many running jwilder/nginx-proxy:test containers", pytrace=False)
|
||||
elif len(nginx_proxy_containers) == 0:
|
||||
pytest.failed("No running jwilder/nginx-proxy:test container")
|
||||
pytest.fail("No running jwilder/nginx-proxy:test container", pytrace=False)
|
||||
return get_nginx_conf_from_container(nginx_proxy_containers[0])
|
||||
|
||||
def get(self, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user