Skip to content

Commit 44b6820

Browse files
committed
refactor(memory): use shared PORTABLE_TABLES in Brain.postgres test
1 parent b55d934 commit 44b6820

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

src/memory/retrieval/store/__tests__/Brain.postgres.test.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,11 @@
1616

1717
import { describe, it, expect, afterEach } from 'vitest';
1818
import { Brain } from '../Brain.js';
19+
import { PORTABLE_TABLES } from '../portable-tables.js';
1920

2021
const POSTGRES_URL = process.env.AGENTOS_TEST_POSTGRES_URL;
2122
const describeIfPostgres = POSTGRES_URL ? describe : describe.skip;
2223

23-
const PORTABLE_TABLES = [
24-
'brain_meta',
25-
'memory_traces',
26-
'knowledge_nodes',
27-
'knowledge_edges',
28-
'documents',
29-
'document_chunks',
30-
'document_images',
31-
'consolidation_log',
32-
'retrieval_feedback',
33-
'conversations',
34-
'messages',
35-
'prospective_items',
36-
'archived_traces',
37-
'archive_access_log',
38-
] as const;
39-
4024
function uniqueBrainId(): string {
4125
return `test-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
4226
}

0 commit comments

Comments
 (0)