From 3e168b3ab73f477d1a127254bdbe0ef60374ce46 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Mon, 6 Jul 2020 23:24:53 +0300 Subject: [PATCH] [fix] testZabbixDiscoverNumberOfIPPools --- tests/all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/all.sh b/tests/all.sh index f92c0f6..4d16aec 100644 --- a/tests/all.sh +++ b/tests/all.sh @@ -245,7 +245,7 @@ testZabbixDiscoverNumberOfIPPools() { DATA=$(zabbix_get -s 127.0.0.1 -p 10050 -k php-fpm.discover["/php-fpm-status"]) NUMBER_OF_POOLS=$(echo "$DATA" | grep -o -F '{"{#POOLNAME}":"localhost",' | wc -l) PHP_COUNT=$(getNumberOfPHPVersions) - POOLS_BY_DESIGN=$(echo "$PHP_COUNT * $MAX_POOLS" | bc) + POOLS_BY_DESIGN="$PHP_COUNT" assertEquals "Number of pools mismatch" "$POOLS_BY_DESIGN" "$NUMBER_OF_POOLS" }