From 6bcfd3fad8255266c5479295ec02e1b2b4ddc5a5 Mon Sep 17 00:00:00 2001 From: kartik-mem0 Date: Thu, 19 Mar 2026 16:06:11 +0530 Subject: [PATCH] test: increase integration helper wait times to 60s for stability --- mem0-ts/src/client/tests/integration/helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mem0-ts/src/client/tests/integration/helpers.ts b/mem0-ts/src/client/tests/integration/helpers.ts index c48e4647b..d74156e7d 100644 --- a/mem0-ts/src/client/tests/integration/helpers.ts +++ b/mem0-ts/src/client/tests/integration/helpers.ts @@ -56,7 +56,7 @@ export async function waitForMemories( client: MemoryClient, userId: string, minCount: number, - maxWaitMs = 30_000, + maxWaitMs = 60_000, ): Promise { const start = Date.now(); while (Date.now() - start < maxWaitMs) { @@ -64,7 +64,7 @@ export async function waitForMemories( if (Array.isArray(memories) && memories.length >= minCount) { return memories; } - await new Promise((r) => setTimeout(r, 2_000)); + await new Promise((r) => setTimeout(r, 3_000)); } return await client.getAll({ user_id: userId }); } @@ -77,7 +77,7 @@ export async function waitForSearchResults( client: MemoryClient, query: string, options: Record, - maxWaitMs = 30_000, + maxWaitMs = 60_000, ): Promise { const start = Date.now(); while (Date.now() - start < maxWaitMs) {