mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:00:42 +00:00
perf(test): skip sandbox prune in context smoke
This commit is contained in:
@@ -107,7 +107,12 @@ describe("resolveSandboxContext", () => {
|
||||
const cfg: OpenClawConfig = {
|
||||
agents: {
|
||||
defaults: {
|
||||
sandbox: { mode: "all", backend: "test-backend", scope: "session" },
|
||||
sandbox: {
|
||||
mode: "all",
|
||||
backend: "test-backend",
|
||||
scope: "session",
|
||||
prune: { idleHours: 0, maxAgeDays: 0 },
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -134,7 +134,9 @@ export async function resolveSandboxContext(params: {
|
||||
}
|
||||
const { rawSessionKey, cfg, runtime } = resolved;
|
||||
|
||||
await (await import("./prune.js")).maybePruneSandboxes(cfg);
|
||||
if (cfg.prune.idleHours !== 0 || cfg.prune.maxAgeDays !== 0) {
|
||||
await (await import("./prune.js")).maybePruneSandboxes(cfg);
|
||||
}
|
||||
|
||||
const { agentWorkspaceDir, scopeKey, workspaceDir } = await ensureSandboxWorkspaceLayout({
|
||||
cfg,
|
||||
|
||||
Reference in New Issue
Block a user