From c5dd54431d2bf57054ccba9cdc811e6c55bbee0d Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 19:35:18 +0100 Subject: [PATCH] test: script scheduled restart calls --- src/daemon/schtasks.stop.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/daemon/schtasks.stop.test.ts b/src/daemon/schtasks.stop.test.ts index 767f0a62712..36144c68831 100644 --- a/src/daemon/schtasks.stop.test.ts +++ b/src/daemon/schtasks.stop.test.ts @@ -183,7 +183,14 @@ describe("Scheduled Task stop/restart cleanup", () => { expect(findVerifiedGatewayListenerPidsOnPortSync).toHaveBeenCalledWith(GATEWAY_PORT); expectGatewayTermination(5151); expect(inspectPortUsage).toHaveBeenCalledTimes(2); - expect(schtasksCalls).toContainEqual(["/Run", "/TN", "OpenClaw Gateway"]); + expect(schtasksCalls).toEqual([ + ["/Query"], + ["/Query", "/TN", "OpenClaw Gateway"], + ["/End", "/TN", "OpenClaw Gateway"], + ["/Run", "/TN", "OpenClaw Gateway"], + ["/Query"], + ["/Query", "/TN", "OpenClaw Gateway", "/V", "/FO", "LIST"], + ]); }); });