diff --git a/tests/test_nginx_status.py b/tests/test_nginx_status.py index f2faa2e1e1d85a02ac7ddd621f4799dd4f189810..b57dcdb6a2a70f196452a93bbf86b72dcdf94ace 100755 --- a/tests/test_nginx_status.py +++ b/tests/test_nginx_status.py @@ -11,9 +11,9 @@ import sys if not os.path.exists('/etc/nginx'): print('Nginx dir does not exists, test skipped.') else: - print('Checking http://localhost/nginx_status response.') + print('Checking http://127.0.0.1:1080/nginx_status response.') try: - req = requests.get('http://localhost/nginx_status', timeout=5) + req = requests.get('http://127.0.0.1:1080/nginx_status', timeout=5) if req.status_code != 200: raise Exception('Request failed with status code %s.' % req.status_code) if 'Active connections' not in req.text: