mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 12:37:40 +00:00
test(memory): prefer clear over reset in qmd spawn setup
This commit is contained in:
@@ -118,7 +118,7 @@ describe("QmdMemoryManager", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
spawnMock.mockReset();
|
spawnMock.mockClear();
|
||||||
spawnMock.mockImplementation(() => createMockChild());
|
spawnMock.mockImplementation(() => createMockChild());
|
||||||
logWarnMock.mockClear();
|
logWarnMock.mockClear();
|
||||||
logDebugMock.mockClear();
|
logDebugMock.mockClear();
|
||||||
@@ -1666,7 +1666,7 @@ describe("QmdMemoryManager", () => {
|
|||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
for (const testCase of cases) {
|
for (const testCase of cases) {
|
||||||
spawnMock.mockReset();
|
spawnMock.mockClear();
|
||||||
spawnMock.mockImplementation(() => createMockChild());
|
spawnMock.mockImplementation(() => createMockChild());
|
||||||
const { manager } = await createManager();
|
const { manager } = await createManager();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user