Skip to content

Commit 9eeaee9

Browse files
author
Andrei Neagu
committed
giving service more time to start
1 parent ff6539e commit 9eeaee9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/docker-api-proxy/tests/integration/test_docker_api_proxy_autenticated.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
from settings_library.docker_api_proxy import DockerApiProxysettings
1515
from tenacity import AsyncRetrying, stop_after_delay, wait_fixed
1616

17-
HERE = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve().parent
17+
_HERE = Path(sys.argv[0] if __name__ == "__main__" else __file__).resolve().parent
1818

1919

2020
@pytest.fixture
2121
def localhost_ip() -> str:
22-
return "172.17.0.1"
22+
return "127.0.0.1"
2323

2424

2525
@pytest.fixture
2626
def local_compose_path() -> Path:
27-
compose_spec_path = HERE / "secured-proxy-docker-compose.yaml"
27+
compose_spec_path = _HERE / "secured-proxy-docker-compose.yaml"
2828
assert compose_spec_path.exists()
2929
return compose_spec_path
3030

@@ -80,7 +80,7 @@ async def test_with_autnentication(deploy_local_spec: None, localhost_ip: str):
8080

8181
async with working_docker:
8282
async for attempt in AsyncRetrying(
83-
wait=wait_fixed(0.1), stop=stop_after_delay(20), reraise=True
83+
wait=wait_fixed(0.1), stop=stop_after_delay(60), reraise=True
8484
):
8585
with attempt:
8686
info = await working_docker.system.info()

0 commit comments

Comments
 (0)