diff --git a/tests/base/04-test-run_nginx.sh b/tests/base/04-test-run_nginx.sh index 92f22e2..bdeb07a 100755 --- a/tests/base/04-test-run_nginx.sh +++ b/tests/base/04-test-run_nginx.sh @@ -66,11 +66,12 @@ ndid="$( docker_run "${CONTAINER}" "-v ${DOC_ROOT_HOST}:${DOC_ROOT_CONT} -v ${CO run "sleep 10" # Check PHP connectivity -if ! run "curl -q http://localhost:${WWW_PORT}/index.php 2>&1 | grep '${FINDME}'"; then +if ! run "curl -q -4 http://127.0.0.1:${WWW_PORT}/index.php 2>&1 | grep '${FINDME}'"; then # Info run "netstat -tuln" - run "curl http://localhost:${WWW_PORT}/index.php" || true + run "curl -4 http://127.0.0.1:${WWW_PORT}/index.php" || true + run "curl -6 http://127.0.0.1:${WWW_PORT}/index.php" || true run "docker ps --no-trunc" docker_exec "${ndid}" "nginx -t" diff --git a/tests/prod/05-test-mount-custom_ini.sh b/tests/prod/05-test-mount-custom_ini.sh index 516c0c4..d514ed3 100755 --- a/tests/prod/05-test-mount-custom_ini.sh +++ b/tests/prod/05-test-mount-custom_ini.sh @@ -82,7 +82,7 @@ if ! run "docker logs ${did} | grep 'post.ini'"; then fi # Check PHP connectivity -if ! run "curl -q localhost:${WWW_PORT}/index.php >/dev/null 2>&1"; then +if ! run "curl -q -4 127.0.0.1:${WWW_PORT}/index.php >/dev/null 2>&1"; then docker_logs "${ndid}" || true docker_logs "${did}" || true docker_stop "${ndid}" || true @@ -109,7 +109,7 @@ if ! docker_exec "${did}" "php -r \"echo ini_get('post_max_size');\" | grep '17M fi # Check modified php.ini -if ! run "curl -q localhost:${WWW_PORT}/index.php 2>/dev/null | grep post_max_size | grep '17M'"; then +if ! run "curl -q -4 127.0.0.1:${WWW_PORT}/index.php 2>/dev/null | grep post_max_size | grep '17M'"; then docker_exec "${did}" "php -r \"echo ini_get('post_max_size');\"" docker_logs "${ndid}" || true docker_logs "${did}" || true