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) {