mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 09:47:28 +00:00
test(agents): use lightweight clears in skills/sandbox setup
This commit is contained in:
@@ -126,8 +126,8 @@ describe("ensureSandboxContainer config-hash recreation", () => {
|
||||
spawnState.calls.length = 0;
|
||||
spawnState.inspectRunning = true;
|
||||
spawnState.labelHash = "";
|
||||
registryMocks.readRegistry.mockReset();
|
||||
registryMocks.updateRegistry.mockReset();
|
||||
registryMocks.readRegistry.mockClear();
|
||||
registryMocks.updateRegistry.mockClear();
|
||||
registryMocks.updateRegistry.mockResolvedValue(undefined);
|
||||
});
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@ metadata: {"openclaw":{"install":[{"id":"deps","kind":"node","package":"example-
|
||||
|
||||
describe("installSkill code safety scanning", () => {
|
||||
beforeEach(() => {
|
||||
runCommandWithTimeoutMock.mockReset();
|
||||
scanDirectoryWithSummaryMock.mockReset();
|
||||
runCommandWithTimeoutMock.mockClear();
|
||||
scanDirectoryWithSummaryMock.mockClear();
|
||||
runCommandWithTimeoutMock.mockResolvedValue({
|
||||
code: 0,
|
||||
stdout: "ok",
|
||||
|
||||
Reference in New Issue
Block a user