perf(test): skip atomic sqlite swaps for memory index

This commit is contained in:
Peter Steinberger
2026-02-14 19:34:04 +00:00
parent 7418400c47
commit 3f5351529f
2 changed files with 64 additions and 5 deletions

View File

@@ -57,6 +57,9 @@ describe("memory index", () => {
});
beforeEach(async () => {
// Perf: most suites don't need atomic swap behavior for full reindexes.
// Keep atomic reindex tests on the safe path.
vi.stubEnv("OPENCLAW_TEST_MEMORY_UNSAFE_REINDEX", "1");
embedBatchCalls = 0;
workspaceDir = path.join(fixtureRoot, `case-${fixtureCount++}`);
await fs.mkdir(workspaceDir, { recursive: true });