From 27e56f6bb2cf77203b913d7db07c97c34d9f73af Mon Sep 17 00:00:00 2001 From: Jan Leon Date: Sat, 30 May 2026 16:07:53 +0200 Subject: [PATCH] test(chatcore): wait longer for upstream timeout metadata --- tests/unit/chatcore-translation-paths.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/chatcore-translation-paths.test.ts b/tests/unit/chatcore-translation-paths.test.ts index d34314c14f..dcb121ac20 100644 --- a/tests/unit/chatcore-translation-paths.test.ts +++ b/tests/unit/chatcore-translation-paths.test.ts @@ -427,8 +427,9 @@ test("chatCore times out upstream execution before provider response headers", a Object.values(getPendingRequests().details[connectionId] || {}).find( (detail: any) => detail?.providerRequest ), - 150 + 1000 )) as any; + assert.ok(pendingDetail, "expected pending request metadata before upstream timeout"); assert.equal(pendingDetail?.providerRequest?.model, "gpt-4o-mini"); assert.deepEqual(pendingDetail?.providerRequest?.messages, body.messages);