From 22c3a065230d6c879ef3c34631cee7363316ed36 Mon Sep 17 00:00:00 2001 From: Ramil Valitov Date: Tue, 7 Jul 2020 06:48:20 +0300 Subject: [PATCH] [add] script timeout test --- tests/all.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/all.sh b/tests/all.sh index 9e9db48..a94e123 100644 --- a/tests/all.sh +++ b/tests/all.sh @@ -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 }