fix(e2e): validate kitchen sink fixture wait attempts

This commit is contained in:
Vincent Koc
2026-06-18 23:21:23 +02:00
parent a98bfdb2b7
commit 392f5b75bf
2 changed files with 44 additions and 1 deletions
+2 -1
View File
@@ -109,7 +109,8 @@ start_kitchen_sink_clawhub_fixture_server() {
KITCHEN_SINK_CLAWHUB_FIXTURE_DIR="$fixture_dir"
KITCHEN_SINK_CLAWHUB_PID_FILE="$server_pid_file"
local wait_attempts="${OPENCLAW_CLAWHUB_FIXTURE_WAIT_ATTEMPTS:-600}"
local wait_attempts
wait_attempts="$(openclaw_e2e_read_positive_int_env OPENCLAW_CLAWHUB_FIXTURE_WAIT_ATTEMPTS 600)" || return $?
for _ in $(seq 1 "$wait_attempts"); do
if [[ -s "$server_port_file" ]]; then
export OPENCLAW_CLAWHUB_URL="http://127.0.0.1:$(cat "$server_port_file")"