mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-20 16:15:15 +00:00
Tests: use OPENCLAW_STATE_DIR in qmd manager
This commit is contained in:
committed by
Vignesh
parent
9df78b3379
commit
5d8c665baf
@@ -51,7 +51,7 @@ describe("QmdMemoryManager", () => {
|
||||
await fs.mkdir(workspaceDir, { recursive: true });
|
||||
stateDir = path.join(tmpRoot, "state");
|
||||
await fs.mkdir(stateDir, { recursive: true });
|
||||
process.env.MOLTBOT_STATE_DIR = stateDir;
|
||||
process.env.OPENCLAW_STATE_DIR = stateDir;
|
||||
cfg = {
|
||||
agents: {
|
||||
list: [{ id: agentId, default: true, workspace: workspaceDir }],
|
||||
@@ -68,7 +68,7 @@ describe("QmdMemoryManager", () => {
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
delete process.env.MOLTBOT_STATE_DIR;
|
||||
delete process.env.OPENCLAW_STATE_DIR;
|
||||
await fs.rm(tmpRoot, { recursive: true, force: true });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user