test(release): stabilize release validation waits

This commit is contained in:
Peter Steinberger
2026-04-26 18:11:12 +01:00
parent 90c40e9f90
commit a4266be808
2 changed files with 2 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ async function bindConversationAndWait(params: {
if (runtime?.probeAvailability) {
await runtime.probeAvailability().catch(() => {});
}
if (!(backend?.healthy?.() ?? false)) {
if (!backend || (backend.healthy && !backend.healthy())) {
if (runtime?.doctor && (attempt === 1 || attempt % 6 === 0)) {
const report = await runtime.doctor().catch((error) => ({
message: error instanceof Error ? error.message : String(error),

View File

@@ -363,7 +363,7 @@ export async function waitForChatFinalEvent(params: {
sessionKey: string;
timeoutMs?: number;
}): Promise<ChatEventPayload> {
const deadline = Date.now() + (params.timeoutMs ?? 15_000);
const deadline = Date.now() + (params.timeoutMs ?? 45_000);
while (Date.now() < deadline) {
const match = params.events.find(
(evt) =>