test(server): drop the startup test for the removed multi-mind migration (P1.2)
This commit is contained in:
@@ -69,25 +69,6 @@ describe('Agent Service', () => {
|
|||||||
expect(fs.existsSync(dataDir)).toBe(true);
|
expect(fs.existsSync(dataDir)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('runs migration when default.mind exists', async () => {
|
|
||||||
const dataDir = makeTmpDir();
|
|
||||||
tmpDirs.push(dataDir);
|
|
||||||
|
|
||||||
// Create a default.mind (simulating pre-M4 layout)
|
|
||||||
const defaultPath = path.join(dataDir, 'default.mind');
|
|
||||||
fs.writeFileSync(defaultPath, '');
|
|
||||||
expect(fs.existsSync(defaultPath)).toBe(true);
|
|
||||||
|
|
||||||
const port = randomPort();
|
|
||||||
const { server } = await startService({ dataDir, port, skipLiteLLM: true });
|
|
||||||
cleanups.push(async () => { await server.close(); });
|
|
||||||
|
|
||||||
// After migration: personal.mind exists, default.mind renamed to .bak
|
|
||||||
expect(fs.existsSync(path.join(dataDir, 'personal.mind'))).toBe(true);
|
|
||||||
expect(fs.existsSync(path.join(dataDir, 'default.mind.bak'))).toBe(true);
|
|
||||||
expect(fs.existsSync(defaultPath)).toBe(false);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('creates waggle.db and the memory directory on a fresh install', async () => {
|
it('creates waggle.db and the memory directory on a fresh install', async () => {
|
||||||
const dataDir = makeTmpDir();
|
const dataDir = makeTmpDir();
|
||||||
tmpDirs.push(dataDir);
|
tmpDirs.push(dataDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user