From 17e02bdad8555f7ca809e63b3eace469b2ac49fb Mon Sep 17 00:00:00 2001 From: Mitchell Krog Date: Wed, 26 Jun 2019 10:19:20 +0200 Subject: [PATCH] ADD time check to Test Rate Limiting REF: #175 --- .dev-tools/test-blocker-whitelist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dev-tools/test-blocker-whitelist.sh b/.dev-tools/test-blocker-whitelist.sh index 2448474d9..23f7120ca 100755 --- a/.dev-tools/test-blocker-whitelist.sh +++ b/.dev-tools/test-blocker-whitelist.sh @@ -266,7 +266,7 @@ file=${TRAVIS_BUILD_DIR}/.dev-tools/test_units/rate-limit-googlebot.list lines=$(cat ${file}) for line in ${lines}; do if - curl -A "${line}" http://localhost:9000 2>&1 | grep -i 'Welcome'; then + time curl -A "${line}" http://localhost:9000 2>&1 | grep -i 'Welcome'; then echo "${bold}${green}PASSED - ${red}${line} was ${bold}${green}ALLOWED" else echo "${bold}${red}FAILED - ${red}${line} was ${bold}${red}NOT ALLOWED"