From 353f8193839fdc6750839cc06f0c0220de97f248 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 18 Dec 2023 18:18:18 +0000 Subject: [PATCH] Add missing protocol for socket connection --- bin/install-package-tests | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/install-package-tests b/bin/install-package-tests index 61e9dc4d..9ac2d12d 100755 --- a/bin/install-package-tests +++ b/bin/install-package-tests @@ -28,9 +28,9 @@ if [ -n "${WP_CLI_TEST_DBHOST}" ]; then if [ -n "${PORT}" ]; then # If the port is not numeric, then we assume it is a socket path. if is_numeric "${PORT}"; then - HOST_STRING="${HOST_STRING} -P${PORT} --protocol=tcp" + HOST_STRING="${HOST_STRING} --port${PORT} --protocol=tcp" else - HOST_STRING="${HOST_STRING} --socket=${PORT}" + HOST_STRING="${HOST_STRING} --socket=${PORT} --protocol=socket" fi fi fi