diff --git a/testinfra/test_mirror.py b/testinfra/test_mirror.py index 359383ce9f..fa32a3ea96 100644 --- a/testinfra/test_mirror.py +++ b/testinfra/test_mirror.py @@ -25,7 +25,7 @@ def test_apache(host): def _run_cmd(host, port, scheme='https', url='', curl_opt=''): hostname = host.backend.get_hostname() - return f'curl {curl_opt} --resolve {hostname}:127.0.0.1 {scheme}://{hostname}:{port}{url}' + return f'curl {curl_opt} --resolve {hostname}:{port}:127.0.0.1 {scheme}://{hostname}:{port}{url}' def test_base_mirror(host): # base mirror