mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:38:25 +00:00
Memory/QMD: harden no-results parsing
This commit is contained in:
committed by
Vignesh
parent
3d343932cf
commit
2f1f82674a
@@ -733,7 +733,6 @@ describe("QmdMemoryManager", () => {
|
||||
await manager.close();
|
||||
});
|
||||
|
||||
|
||||
it("treats plain-text no-results stdout as an empty result set", async () => {
|
||||
spawnMock.mockImplementation((_cmd: string, args: string[]) => {
|
||||
if (args[0] === "query") {
|
||||
@@ -838,7 +837,6 @@ describe("QmdMemoryManager", () => {
|
||||
).rejects.toThrow(/qmd query returned invalid JSON/);
|
||||
await manager.close();
|
||||
});
|
||||
|
||||
describe("model cache symlink", () => {
|
||||
let defaultModelsDir: string;
|
||||
let customModelsDir: string;
|
||||
@@ -921,7 +919,6 @@ describe("QmdMemoryManager", () => {
|
||||
await manager!.close();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
async function waitForCondition(check: () => boolean, timeoutMs: number): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user