Skip to content

Commit 4ff47fe

Browse files
author
OpenClaude Worker 3
committed
Fix Orama corruption recovery test isolation
1 parent 836a850 commit 4ff47fe

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/utils/knowledgeGraph.stress.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,8 @@ describe('KnowledgeGraph Phase 1 Stress & Edge Cases', () => {
126126

127127
// 5. Verify the corrupted file was moved
128128
const { readdirSync } = await import('fs')
129-
const projectsBaseDir = join(configDir, 'projects')
130-
expect(existsSync(projectsBaseDir)).toBe(true)
131-
// Search recursively for the corrupted file
129+
// Search recursively from the actual Orama location. The config home can
130+
// be redirected by other tests, but the persisted file path is authoritative.
132131
const findCorrupted = (dir: string): boolean => {
133132
const entries = readdirSync(dir, { withFileTypes: true })
134133
for (const entry of entries) {

0 commit comments

Comments
 (0)