|
1 | | -import path from "node:path"; |
2 | 1 | import { MAX_TIMER_TIMEOUT_MS } from "@openclaw/normalization-core/number-coercion"; |
3 | 2 | import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; |
4 | 3 | import { |
@@ -61,7 +60,6 @@ describe("sessions_spawn context modes", () => { |
61 | 60 | fallbackEntry?: Record<string, unknown>; |
62 | 61 | parentStoreKeys?: string[]; |
63 | 62 | sessionKey: string; |
64 | | - sessionsDir?: string; |
65 | 63 | }) => { |
66 | 64 | const parentEntry = params.parentStoreKeys |
67 | 65 | ?.map((key) => store[key]) |
@@ -94,7 +92,6 @@ describe("sessions_spawn context modes", () => { |
94 | 92 | const fork = await forkSessionFromParentMock({ |
95 | 93 | parentEntry, |
96 | 94 | agentId: params.agentId, |
97 | | - sessionsDir: params.sessionsDir, |
98 | 95 | }); |
99 | 96 | if (!fork) { |
100 | 97 | return { status: "failed" }; |
@@ -191,7 +188,6 @@ describe("sessions_spawn context modes", () => { |
191 | 188 | expect(forkSessionFromParentMock).toHaveBeenCalledWith({ |
192 | 189 | parentEntry: store.main, |
193 | 190 | agentId: "main", |
194 | | - sessionsDir: path.dirname(storePath), |
195 | 191 | }); |
196 | 192 | const childSessionKey = requireChildSessionKey(accepted); |
197 | 193 | const childEntry = requireStoreEntry(store, childSessionKey); |
@@ -329,7 +325,6 @@ describe("sessions_spawn context modes", () => { |
329 | 325 | expect(forkSessionFromParentMock).toHaveBeenCalledWith({ |
330 | 326 | parentEntry: store.main, |
331 | 327 | agentId: "main", |
332 | | - sessionsDir: path.dirname(storePath), |
333 | 328 | }); |
334 | 329 | const cleanupRequest = requireGatewayRequest("sessions.delete"); |
335 | 330 | expect(cleanupRequest.params?.key).toBe(result.childSessionKey); |
|
0 commit comments