test(server): build cron, trace and held-action stores on WaggleDB (P1.5)
These stores take Waggle's own database since ADR-0007; the tests still handed them a MindDB. Only the store construction changes.
This commit is contained in:
@@ -28,7 +28,7 @@ import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
import path from 'node:path';
|
||||
import { randomUUID } from 'node:crypto';
|
||||
import { MindDB, ExecutionTraceStore } from '@waggle/core';
|
||||
import { WaggleDB, ExecutionTraceStore } from '@waggle/core';
|
||||
import { agentRoutes } from '../../src/local/routes/agent.js';
|
||||
import { agentEntityRoutes } from '../../src/local/routes/agents.js';
|
||||
import { AgentRunRegistry } from '../../src/local/agent-run-registry.js';
|
||||
@@ -115,7 +115,7 @@ const VALID_BODY = {
|
||||
};
|
||||
|
||||
describe('Agent entity routes (Phase 3)', () => {
|
||||
let db: MindDB;
|
||||
let db: WaggleDB;
|
||||
let traceStore: ExecutionTraceStore;
|
||||
let dataDir: string;
|
||||
let server: ReturnType<typeof Fastify>;
|
||||
@@ -127,7 +127,7 @@ describe('Agent entity routes (Phase 3)', () => {
|
||||
beforeEach(() => {
|
||||
dataDir = path.join(os.tmpdir(), `waggle-agents-${randomUUID()}`);
|
||||
fs.mkdirSync(dataDir, { recursive: true });
|
||||
db = new MindDB(':memory:');
|
||||
db = new WaggleDB(':memory:');
|
||||
traceStore = new ExecutionTraceStore(db);
|
||||
spawnCalls = [];
|
||||
pausedIds = [];
|
||||
|
||||
Reference in New Issue
Block a user