Skip to content

Commit 353f819

Browse files
committed
Add missing protocol for socket connection
1 parent f48db2f commit 353f819

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/install-package-tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ if [ -n "${WP_CLI_TEST_DBHOST}" ]; then
2828
if [ -n "${PORT}" ]; then
2929
# If the port is not numeric, then we assume it is a socket path.
3030
if is_numeric "${PORT}"; then
31-
HOST_STRING="${HOST_STRING} -P${PORT} --protocol=tcp"
31+
HOST_STRING="${HOST_STRING} --port${PORT} --protocol=tcp"
3232
else
33-
HOST_STRING="${HOST_STRING} --socket=${PORT}"
33+
HOST_STRING="${HOST_STRING} --socket=${PORT} --protocol=socket"
3434
fi
3535
fi
3636
fi

0 commit comments

Comments
 (0)