tests: fix flaky radius tests by waiting for server readiness

All six radius tests used a fixed sleep 4 after starting radiusd and
ocserv.  On slow or ASAN-instrumented hosts (CentOS 10 CI) this is
insufficient: freeradius with -xx debug logging takes longer than 4
seconds to load its modules, and even after binding UDP 1812 it continues
initializing its user database before it can process auth requests.

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2026-04-25 17:20:38 +02:00
parent 5137ba4309
commit 5148c723cb
7 changed files with 40 additions and 29 deletions
+2 -1
View File
@@ -91,7 +91,8 @@ fi
${CMDNS2} ${SERV} -p ${PIDFILE} -f -c ${CONFIG} ${DEBUG} & PID=$!
sleep 4
wait_file_contents "${RADIUSLOG}" "Ready to process requests" 30
wait_ns_port t ${PORT}
GROUP=group4
echo " * Tests OU= comma-separated groups ($GROUP)"