tests: auf den Cooldown-Stub warten statt 0,3 s zu schlafen

Unter Last war der Stub auf PORT+231 noch nicht bereit; die erste
Anfrage lief dann in connection refused (offline) statt in den
Retry-After-Cooldown. wait_port macht den Test lastunabhängig.
This commit is contained in:
Hermes committed 2026-11-17 20:42:38 +00:00
1 parent 070fac42c5
commit 00c88c588e
1 file changed
+1 -1
+1 -1
View File
@@ -144,7 +144,7 @@ RBS=$((PORT+231))
STUB_STATE="$TMP/rab.state" tests/stub $RBS "RAB" --fail-n 100 --retry-after 30 \
> "$TMP/rab_stub.log" 2>&1 &
PIDS+=($!)
sleep 0.3
wait_port "$RBS" 10 || bad "the cooldown stub did not come up"
cat > "$TMP/rab.conf" <<CFG
listen 127.0.0.1:$RBP