mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 22:04:30 +00:00
test: remove duplicate lowercase default profile daemon path cases
This commit is contained in:
@@ -154,13 +154,6 @@ describe("launchd install", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("resolveLaunchAgentPlistPath", () => {
|
describe("resolveLaunchAgentPlistPath", () => {
|
||||||
it("uses default label when OPENCLAW_PROFILE is default", () => {
|
|
||||||
const env = { HOME: "/Users/test", OPENCLAW_PROFILE: "default" };
|
|
||||||
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
|
||||||
"/Users/test/Library/LaunchAgents/ai.openclaw.gateway.plist",
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("uses default label when OPENCLAW_PROFILE is unset", () => {
|
it("uses default label when OPENCLAW_PROFILE is unset", () => {
|
||||||
const env = { HOME: "/Users/test" };
|
const env = { HOME: "/Users/test" };
|
||||||
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
expect(resolveLaunchAgentPlistPath(env)).toBe(
|
||||||
|
|||||||
@@ -35,13 +35,6 @@ describe("schtasks runtime parsing", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("resolveTaskScriptPath", () => {
|
describe("resolveTaskScriptPath", () => {
|
||||||
it("uses default path when OPENCLAW_PROFILE is default", () => {
|
|
||||||
const env = { USERPROFILE: "C:\\Users\\test", OPENCLAW_PROFILE: "default" };
|
|
||||||
expect(resolveTaskScriptPath(env)).toBe(
|
|
||||||
path.join("C:\\Users\\test", ".openclaw", "gateway.cmd"),
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("uses default path when OPENCLAW_PROFILE is unset", () => {
|
it("uses default path when OPENCLAW_PROFILE is unset", () => {
|
||||||
const env = { USERPROFILE: "C:\\Users\\test" };
|
const env = { USERPROFILE: "C:\\Users\\test" };
|
||||||
expect(resolveTaskScriptPath(env)).toBe(
|
expect(resolveTaskScriptPath(env)).toBe(
|
||||||
|
|||||||
@@ -59,13 +59,6 @@ describe("systemd runtime parsing", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe("resolveSystemdUserUnitPath", () => {
|
describe("resolveSystemdUserUnitPath", () => {
|
||||||
it("uses default service name when OPENCLAW_PROFILE is default", () => {
|
|
||||||
const env = { HOME: "/home/test", OPENCLAW_PROFILE: "default" };
|
|
||||||
expect(resolveSystemdUserUnitPath(env)).toBe(
|
|
||||||
"/home/test/.config/systemd/user/openclaw-gateway.service",
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("uses default service name when OPENCLAW_PROFILE is unset", () => {
|
it("uses default service name when OPENCLAW_PROFILE is unset", () => {
|
||||||
const env = { HOME: "/home/test" };
|
const env = { HOME: "/home/test" };
|
||||||
expect(resolveSystemdUserUnitPath(env)).toBe(
|
expect(resolveSystemdUserUnitPath(env)).toBe(
|
||||||
|
|||||||
Reference in New Issue
Block a user