Memory/QMD: harden no-results parsing

This commit is contained in:
Vignesh Natarajan
2026-02-11 15:12:33 -08:00
committed by Vignesh
parent 3d343932cf
commit 2f1f82674a
3 changed files with 49 additions and 48 deletions

View File

@@ -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> {