mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 11:41:24 +00:00
test(core): use lightweight clears in update, child adapter, and copilot token setup
This commit is contained in:
@@ -77,14 +77,14 @@ vi.mock("./validation.js", () => ({
|
||||
|
||||
beforeEach(() => {
|
||||
capturedPayload = undefined;
|
||||
runGatewayUpdateMock.mockReset();
|
||||
runGatewayUpdateMock.mockClear();
|
||||
runGatewayUpdateMock.mockResolvedValue({
|
||||
status: "ok",
|
||||
mode: "npm",
|
||||
steps: [],
|
||||
durationMs: 100,
|
||||
});
|
||||
scheduleGatewaySigusr1RestartMock.mockReset();
|
||||
scheduleGatewaySigusr1RestartMock.mockClear();
|
||||
scheduleGatewaySigusr1RestartMock.mockReturnValue({ scheduled: true });
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user