From c71bc94824867dcd98f1616105fe5d005e0d0670 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Tue, 7 Jul 2020 06:29:49 +0300 Subject: [PATCH] [fix] ondemand calls --- tests/all.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tests/all.sh b/tests/all.sh index 5ad0cdd..5ec8af7 100644 --- a/tests/all.sh +++ b/tests/all.sh @@ -308,18 +308,11 @@ testZabbixDiscoverNumberOfOndemandPoolsHot() { POOL_SOCKET="/run/php/php${PHP_VERSION}-fpm-${POOL_NAME}.sock" PHP_STATUS=$( - SCRIPT_NAME=$POOL_SOCKET \ - SCRIPT_FILENAME=$POOL_SOCKET \ + SCRIPT_NAME=$POOL_URL \ + SCRIPT_FILENAME=$POOL_URL \ QUERY_STRING=json \ REQUEST_METHOD=GET \ - sudo cgi-fcgi -bind -connect "$POOL_URL" 2>/dev/null - ) - PHP_STATUS=$( - SCRIPT_NAME=$POOL_SOCKET \ - SCRIPT_FILENAME=$POOL_SOCKET \ - QUERY_STRING=json \ - REQUEST_METHOD=GET \ - sudo cgi-fcgi -bind -connect "$POOL_URL" 2>/dev/null + sudo cgi-fcgi -bind -connect "$POOL_SOCKET" 2>/dev/null ) assertNotNull "Failed to connect to $POOL_SOCKET" "$PHP_STATUS" done