diff --git a/src/daemon/launchd.test.ts b/src/daemon/launchd.test.ts index 9a682791611..43222a0e298 100644 --- a/src/daemon/launchd.test.ts +++ b/src/daemon/launchd.test.ts @@ -199,18 +199,4 @@ describe("resolveLaunchAgentPlistPath", () => { "/Users/test/Library/LaunchAgents/ai.openclaw.myprofile.plist", ); }); - - it("handles case-insensitive 'Default' profile", () => { - const env = { HOME: "/Users/test", OPENCLAW_PROFILE: "Default" }; - expect(resolveLaunchAgentPlistPath(env)).toBe( - "/Users/test/Library/LaunchAgents/ai.openclaw.gateway.plist", - ); - }); - - it("trims whitespace from OPENCLAW_PROFILE", () => { - const env = { HOME: "/Users/test", OPENCLAW_PROFILE: " myprofile " }; - expect(resolveLaunchAgentPlistPath(env)).toBe( - "/Users/test/Library/LaunchAgents/ai.openclaw.myprofile.plist", - ); - }); }); diff --git a/src/daemon/schtasks.test.ts b/src/daemon/schtasks.test.ts index 42e13a828f5..a0d24d89da0 100644 --- a/src/daemon/schtasks.test.ts +++ b/src/daemon/schtasks.test.ts @@ -58,20 +58,6 @@ describe("resolveTaskScriptPath", () => { expect(resolveTaskScriptPath(env)).toBe(path.join("C:\\State\\openclaw", "gateway.cmd")); }); - it("handles case-insensitive 'Default' profile", () => { - const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: "Default" }; - expect(resolveTaskScriptPath(env)).toBe( - path.join("C:\\Users\\test", ".openclaw", "gateway.cmd"), - ); - }); - - it("trims whitespace from OPENCLAW_PROFILE", () => { - const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: " myprofile " }; - expect(resolveTaskScriptPath(env)).toBe( - path.join("C:\\Users\\test", ".openclaw-myprofile", "gateway.cmd"), - ); - }); - it("falls back to HOME when USERPROFILE is not set", () => { const env = { HOME: "/home/test", OPENCLAW_PROFILE: "default" }; expect(resolveTaskScriptPath(env)).toBe(path.join("/home/test", ".openclaw", "gateway.cmd")); diff --git a/src/daemon/systemd.test.ts b/src/daemon/systemd.test.ts index 3dbc3e8b647..5e9e09deed3 100644 --- a/src/daemon/systemd.test.ts +++ b/src/daemon/systemd.test.ts @@ -103,20 +103,6 @@ describe("resolveSystemdUserUnitPath", () => { "/home/test/.config/systemd/user/custom-unit.service", ); }); - - it("handles case-insensitive 'Default' profile", () => { - const env = { HOME: "/home/test", OPENCLAW_PROFILE: "Default" }; - expect(resolveSystemdUserUnitPath(env)).toBe( - "/home/test/.config/systemd/user/openclaw-gateway.service", - ); - }); - - it("trims whitespace from OPENCLAW_PROFILE", () => { - const env = { HOME: "/home/test", OPENCLAW_PROFILE: " myprofile " }; - expect(resolveSystemdUserUnitPath(env)).toBe( - "/home/test/.config/systemd/user/openclaw-gateway-myprofile.service", - ); - }); }); describe("splitArgsPreservingQuotes", () => {