@@ -20,7 +20,8 @@ set -euo pipefail
2020# ---------------------------------------------------------------------------
2121# Configuration
2222# ---------------------------------------------------------------------------
23- BASE_URL=" http://localhost:3333" # shellcheck disable=SC2034
23+ # shellcheck disable=SC2034
24+ BASE_URL=" http://localhost:3333"
2425API=" http://localhost:3333/api/v1"
2526TEST_EMAIL=" test@prostaff.gg"
2627TEST_PASSWORD=" Test123!@#"
@@ -162,12 +163,15 @@ print(f'{avg:.4f}')
162163
163164 echo " Average: ${avg} s"
164165 # Store for comparison
165- TIMING_RESULT_LABEL=" ${label} " # shellcheck disable=SC2034
166+ # shellcheck disable=SC2034
167+ TIMING_RESULT_LABEL=" ${label} "
166168 TIMING_RESULT_AVG=" ${avg} "
167169}
168170
169- AUTH_LAST_CODE=" " # shellcheck disable=SC2034
170- AUTH_LAST_TIME=" " # shellcheck disable=SC2034
171+ # shellcheck disable=SC2034
172+ AUTH_LAST_CODE=" "
173+ # shellcheck disable=SC2034
174+ AUTH_LAST_TIME=" "
171175VALID_TOKEN=" "
172176
173177# ===========================================================================
@@ -422,9 +426,12 @@ info "This test collects response times to detect whether the server processes"
422426info " valid vs invalid emails differently (constant-time comparison check)."
423427echo " "
424428
425- T1_TIMES=() # shellcheck disable=SC2034
426- T2_TIMES=() # shellcheck disable=SC2034
427- T3_TIMES=() # shellcheck disable=SC2034
429+ # shellcheck disable=SC2034
430+ T1_TIMES=()
431+ # shellcheck disable=SC2034
432+ T2_TIMES=()
433+ # shellcheck disable=SC2034
434+ T3_TIMES=()
428435
429436collect_timing " Valid email, wrong password" " ${TEST_EMAIL} " " ${WRONG_PASSWORD} " " ${TIMING_SAMPLES} "
430437T1_AVG=" ${TIMING_RESULT_AVG} "
0 commit comments