Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Wait for the retry RPC before asserting it in the import spec

M3gA-Mind2940eee32fd0
diff --git a/app/test/playwright/specs/memory-v2.spec.ts b/app/test/playwright/specs/memory-v2.spec.ts
index aa635ffb93..264c4a699a 100644
--- a/app/test/playwright/specs/memory-v2.spec.ts
+++ b/app/test/playwright/specs/memory-v2.spec.ts
@@ -527,7 +527,8 @@ test.describe('Memory v2 — engine active', () => {
timeout: 20_000,
});
await page.getByTestId('memory-import-retry-failed').click();
- expect(fake.paramsOf('memory_import_retry_failed')).toEqual([{}]);
+ // The click resolves before the RPC reaches the fake: wait for it.
+ await expect.poll(() => fake.paramsOf('memory_import_retry_failed')).toEqual([{}]);
expect(fake.paramsOf('memory_import_start')).toEqual([]);
// Running, then done with nothing left to retry.