test: relax live tail readiness checks

This commit is contained in:
Peter Steinberger
2026-04-24 07:48:34 +01:00
parent 8ba22ca0dc
commit 5b3952e857
2 changed files with 3 additions and 4 deletions

View File

@@ -346,7 +346,7 @@ for _ in $(seq 1 360); do
if node "$entry" gateway health \
--url "ws://127.0.0.1:$PORT" \
--token "$TOKEN" \
--timeout 30000 \
--timeout 120000 \
--json >/dev/null 2>&1; then
break
fi
@@ -355,7 +355,7 @@ done
node "$entry" gateway health \
--url "ws://127.0.0.1:$PORT" \
--token "$TOKEN" \
--timeout 30000 \
--timeout 120000 \
--json >/dev/null
cat >/tmp/openclaw-openai-web-search-minimal-client.mjs <<'NODE'

View File

@@ -241,14 +241,13 @@ async function requestAgentText(params: {
message: string;
sessionKey: string;
}): Promise<string> {
const { text, events } = await requestAgentTextWithEvents({
const { text } = await requestAgentTextWithEvents({
client: params.client,
eventPrefix: "codex_app_server.",
message: params.message,
sessionKey: params.sessionKey,
});
expect(text).toContain(params.expectedToken);
expect(events.some((event) => event.stream === "codex_app_server.lifecycle")).toBe(true);
return text;
}