3
0
mirror of https://github.com/rvalitov/zabbix-php-fpm.git synced 2023-11-05 03:30:27 +01:00

[add] script timeout test

This commit is contained in:
Ramil Valitov 2020-07-07 06:48:20 +03:00
parent 47d0caf212
commit 22c3a06523
No known key found for this signature in database
GPG Key ID: 2AB186DABDFE1914

View File

@ -218,7 +218,7 @@ testDiscoverScriptSleep() {
echo "Success time checks: $CHECK_OK_COUNT"
echo "Stop time checks: $STOP_OK_COUNT"
if [[ $CHECK_OK_COUNT -lt 1 ]] || [[ $STOP_OK_COUNT -lt 1 ]];then
if [[ $CHECK_OK_COUNT -lt 1 ]] || [[ $STOP_OK_COUNT -lt 1 ]]; then
echo "$DATA"
fi
assertTrue "No success time checks detected" "[ $CHECK_OK_COUNT -gt 0 ]"
@ -365,12 +365,16 @@ testZabbixDiscoverNumberOfPortPools() {
}
#This test should be last in Zabbix tests
testZabbixDiscoverTimeout() {
testDiscoverScriptTimeout() {
#Create lots of pools
MAX_POOLS=20
MAX_PORTS=20
setupPools
testDiscoverScriptReturnsData
}
testZabbixDiscoverTimeout() {
testZabbixDiscoverReturnsData
}